From 131babe41ea1eccd7b0ad22349753e1a7f680d8d Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Fri, 29 Oct 2021 09:42:08 +0000 Subject: [PATCH] [FIX] account_facturx: Don't import the delivery address When exporting, the delivery address is put inside the xml. This field is added by the 'sale' module and is not supposed to be displayed for vendor bill. However, even if this field isn't displayed, the factur-x module was setting the wrong delivery address on it. closes odoo/odoo#79410 Issue: 2668902 X-original-commit: a127515d890df74e341c0f08406ef451a638f639 Signed-off-by: Laurent Smet Signed-off-by: Josse Colpaert --- addons/account_edi_facturx/models/account_edi_format.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/addons/account_edi_facturx/models/account_edi_format.py b/addons/account_edi_facturx/models/account_edi_format.py index 8bfc00996f1..602d0c48e57 100644 --- a/addons/account_edi_facturx/models/account_edi_format.py +++ b/addons/account_edi_facturx/models/account_edi_format.py @@ -154,14 +154,6 @@ class AccountEdiFormat(models.Model): vat=_find_value(f"//ram:{partner_type}/ram:SpecifiedTaxRegistration/ram:ID"), ) - # Delivery partner - if 'partner_shipping_id' in invoice._fields: - invoice_form.partner_shipping_id = self._retrieve_partner( - name=_find_value("//ram:ShipToTradeParty/ram:Name"), - mail=_find_value("//ram:ShipToTradeParty//ram:URIID[@schemeID='SMTP']"), - vat=_find_value("//ram:ShipToTradeParty/ram:SpecifiedTaxRegistration/ram:ID"), - ) - # Reference. elements = tree.xpath('//rsm:ExchangedDocument/ram:ID', namespaces=tree.nsmap) if elements: