summaryrefslogtreecommitdiff
path: root/addons/account_edi_facturx
diff options
context:
space:
mode:
authorJosse Colpaert <jco@odoo.com>2021-03-22 10:50:09 +0000
committerJosse Colpaert <jco@odoo.com>2021-03-24 14:51:27 +0000
commit4a45b37fe4d305d0dfe62c2c6a8f706b67849712 (patch)
tree473a8b8bd201b1ff5b8071fa6b213d52f8c6c1c4 /addons/account_edi_facturx
parente76b9ff26527805819816714d100390a24ba7e89 (diff)
[FIX] account_edi: disable prediction when importing invoices.
closes odoo/odoo#68311 Related: odoo/enterprise#17273 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/account_edi_facturx')
-rw-r--r--addons/account_edi_facturx/models/account_edi_format.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/account_edi_facturx/models/account_edi_format.py b/addons/account_edi_facturx/models/account_edi_format.py
index fb6b68a393e..587604c868b 100644
--- a/addons/account_edi_facturx/models/account_edi_format.py
+++ b/addons/account_edi_facturx/models/account_edi_format.py
@@ -182,7 +182,8 @@ class AccountEdiFormat(models.Model):
invoice.move_type = default_move_type
# self could be a single record (editing) or be empty (new).
- with Form(invoice.with_context(default_move_type=default_move_type)) as invoice_form:
+ with Form(invoice.with_context(default_move_type=default_move_type,
+ account_predictive_bills_disable_prediction=True)) as invoice_form:
# Partner (first step to avoid warning 'Warning! You must first select a partner.').
partner_type = invoice_form.journal_id.type == 'purchase' and 'SellerTradeParty' or 'BuyerTradeParty'
elements = tree.xpath('//ram:' + partner_type + '/ram:SpecifiedTaxRegistration/ram:ID', namespaces=tree.nsmap)