As you know Odoo V13 released in October with great new features. The new module added Planning. Having great range of features and you can easily plan the hours of your employees or workers.
In some cases we need to create invoice based on planned hours. Here, the server action only need to add. And you are able to create invoice from planning.
Server Action:
for rec in records: partner_id = rec.employee_id.address_home_id price_unit = rec.employee_id.timesheet_cost invoice = env['account.move'].create({ 'type': 'out_invoice', 'partner_id': partner_id.id, 'invoice_line_ids': [(0, 0, {
'quantity': rec.allocated_hours,
'price_unit': price_unit,
'name': 'Emp. Planned Hours'
})
]}) invoice.post() action = { 'type': 'ir.actions.act_window', 'res_id': invoice.id, 'res_model': 'account.move', 'views': [(env.ref('account.view_move_form').id, 'form')], }
Youtube Video :
..Enjoy..
As we know there are many companies which are converting into Big Data Solutions Developer with the right direction we can definitely predict the future.
ReplyDeleteThank you so much for sharing your thoughts with us. It is very useful and informational, Keep sharing.
ReplyDeleteOdoo Implementation
odsoFanmi-North Las Vegas Nina Taglienti https://marketplace.visualstudio.com/items?itemName=isulatfu.Johnny-Graves-u2014The-Unchosen-One-gratuita
ReplyDeletediepesuju
daeimVquae-ra_Springfield Jane Milligan click
ReplyDeleteprosexuntau
Npifalhae_tsu Megan Moon Software
ReplyDeleteInstall now
Software
poisigpefi