From 00b289840821f741b489999b012b56d121ff870b Mon Sep 17 00:00:00 2001 From: sinergia Date: Mon, 29 Apr 2024 12:57:10 -0500 Subject: [PATCH] =?UTF-8?q?Fix:=20Contrato=20Origen=20en=20la=20venta=20se?= =?UTF-8?q?=20a=C3=B1ade=20id=20para=20campo=20Many2One=20en=20servicio=20?= =?UTF-8?q?de=20Mantenimiento?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sale.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sale.py b/sale.py index fc2870d..9f6ffe2 100644 --- a/sale.py +++ b/sale.py @@ -204,8 +204,9 @@ class Sale(metaclass=PoolMeta): state_agended='no_agenda', propietary=sale.party, propietary_address=sale.shipment_address, - contract_origin=sale.contract_ref - if sale.contract_ref else None, + contract_origin=( + sale.contract_ref.id + if sale.contract_ref else None), sale_origin=sale, sale_date=sale.sale_date, state="draft"