diff --git a/purchase_sale_inter_company/models/purchase_order.py b/purchase_sale_inter_company/models/purchase_order.py index b1c7f354603..0b3f2bec331 100644 --- a/purchase_sale_inter_company/models/purchase_order.py +++ b/purchase_sale_inter_company/models/purchase_order.py @@ -112,6 +112,7 @@ def _inter_company_create_sale_order(self, dest_company): # Validation of sale order if dest_company.sale_auto_validation: sale_order.with_user(intercompany_user.id).sudo().action_confirm() + return sale_order def _prepare_sale_order_data( self, name, partner, dest_company, direct_delivery_address