summaryrefslogtreecommitdiff
path: root/addons/l10n_it_edi
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/l10n_it_edi
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/l10n_it_edi')
-rw-r--r--addons/l10n_it_edi/models/account_edi_format.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/l10n_it_edi/models/account_edi_format.py b/addons/l10n_it_edi/models/account_edi_format.py
index bc03dce1bb3..6fccb89c706 100644
--- a/addons/l10n_it_edi/models/account_edi_format.py
+++ b/addons/l10n_it_edi/models/account_edi_format.py
@@ -152,7 +152,8 @@ class AccountEdiFormat(models.Model):
elif elements and elements[0].text and elements[0].text == 'TD04':
move_type = 'in_refund'
# move could be a single record (editing) or be empty (new).
- with Form(invoice.with_context(default_move_type=move_type)) as invoice_form:
+ with Form(invoice.with_context(default_move_type=move_type,
+ account_predictive_bills_disable_prediction=True)) as invoice_form:
message_to_log = []
# Partner (first step to avoid warning 'Warning! You must first select a partner.'). <1.2>