Skip to content

Commit

Permalink
[FIX] account_facturx: Don't import the delivery address
Browse files Browse the repository at this point in the history
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#79304

Issue: 2668902
X-original-commit: 2f2fbb9
Signed-off-by: Josse Colpaert <jco@openerp.com>
Signed-off-by: Laurent Smet <las@openerp.com>
  • Loading branch information
smetl committed Nov 5, 2021
1 parent df1e3e2 commit a127515
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions addons/account_edi_facturx/models/account_edi_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,6 @@ def _find_value(xpath, element=tree):
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:
Expand Down

0 comments on commit a127515

Please sign in to comment.