From 2173b3f0429ac30b2870d07700b0b4b8659f08de Mon Sep 17 00:00:00 2001 From: JordiMForgeFlow Date: Thu, 21 Nov 2024 11:30:23 +0100 Subject: [PATCH] [IMP] purchase_sale_inter_company: return created SO --- purchase_sale_inter_company/models/purchase_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/purchase_sale_inter_company/models/purchase_order.py b/purchase_sale_inter_company/models/purchase_order.py index ac3b04384e1..201e46248d4 100644 --- a/purchase_sale_inter_company/models/purchase_order.py +++ b/purchase_sale_inter_company/models/purchase_order.py @@ -121,6 +121,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