Tags


odoo 8

inv_obj = self.pool.get('account.invoice')
inv_obj.button_compute(cr, uid, [invoice_id], context=context, set_total=True)
inv_obj.action_date_assign(cr, uid, invoice_id, context=context)
inv_obj.action_move_create(cr, uid, invoice_id, context=context)
inv_obj.action_number(cr, uid, invoice_id, context=context)
inv_obj.invoice_validate(cr, uid, invoice_id, context=context)

odoo 10

inv_obj = self.env['account.invoice']
inv_obj.search([('id','=',invoice.id)]).action_date_assign()
inv_obj.search([('id','=',invoice.id)]).action_move_create()
inv_obj.search([('id','=',invoice.id)]).invoice_validate()
Advertisements