Skip to content
Snippets Groups Projects
Commit 75b23371 authored by Laurent Smet's avatar Laurent Smet
Browse files

[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#79179

Issue: 2668902
Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
parent 9702e541
Branches
Tags
No related merge requests found
......@@ -156,10 +156,6 @@ class AccountMove(models.Model):
partner_type = invoice_form.journal_id.type == 'purchase' and 'SellerTradeParty' or 'BuyerTradeParty'
invoice_form.partner_id = find_partner(partner_type)
# Delivery Partner
if 'partner_shipping_id' in self._fields:
invoice_form.partner_shipping_id = find_partner('ShipToTradeParty')
# Reference.
elements = tree.xpath('//rsm:ExchangedDocument/ram:ID', namespaces=tree.nsmap)
if elements:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment