Live Chat
True
FAQs
Odoo Point of Sale

how execute custom code after a sale order is created successfully.

There is an internal function that we override.

(you would do the same in your own module: call super and then your code)

def _action_confirm(self):
result = super(SaleOrder, self)._action_confirm()
for order in self:
order.order_line.sudo()._purchase_service_generation()
return result


Was this article helpful?

FAQ HOME

To install this Web App in your iPhone/iPad press and then Add to Home Screen.