diff --git a/purchase_sale_inter_company/models/purchase_order.py b/purchase_sale_inter_company/models/purchase_order.py index d2fab038f83..4141cebd858 100644 --- a/purchase_sale_inter_company/models/purchase_order.py +++ b/purchase_sale_inter_company/models/purchase_order.py @@ -99,6 +99,7 @@ def _inter_company_create_sale_order(self, dest_company): # Validation of sale order if dest_company.sale_auto_validation: sale_order.sudo(intercompany_user.id).action_confirm() + return sale_order @api.multi def _prepare_sale_order_data(self, name, partner, dest_company,