diff --git a/addons/account_edi_facturx/models/account_edi_format.py b/addons/account_edi_facturx/models/account_edi_format.py index 02c0b2da64b..cbe8bd38a65 100644 --- a/addons/account_edi_facturx/models/account_edi_format.py +++ b/addons/account_edi_facturx/models/account_edi_format.py @@ -148,8 +148,7 @@ 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, - account_predictive_bills_disable_prediction=True)) as invoice_form: + with Form(invoice.with_context(default_move_type=default_move_type)) as invoice_form: partner_type = invoice_form.journal_id.type == 'purchase' and 'SellerTradeParty' or 'BuyerTradeParty' invoice_form.partner_id = self._retrieve_partner( name=_find_value(f"//ram:{partner_type}/ram:Name"), diff --git a/addons/account_edi_ubl/models/account_edi_format.py b/addons/account_edi_ubl/models/account_edi_format.py index 1c89345307f..9a605c402f4 100644 --- a/addons/account_edi_ubl/models/account_edi_format.py +++ b/addons/account_edi_ubl/models/account_edi_format.py @@ -67,7 +67,7 @@ class AccountEdiFormat(models.Model): def _find_value(xpath, element=tree): return self._find_value(xpath, element, namespaces) - with Form(invoice.with_context(account_predictive_bills_disable_prediction=True)) as invoice_form: + with Form(invoice) as invoice_form: # Reference elements = tree.xpath('//cbc:ID', namespaces=namespaces) if elements: diff --git a/addons/l10n_it_edi/models/account_edi_format.py b/addons/l10n_it_edi/models/account_edi_format.py index 2320ef24158..f51a416188e 100644 --- a/addons/l10n_it_edi/models/account_edi_format.py +++ b/addons/l10n_it_edi/models/account_edi_format.py @@ -283,8 +283,7 @@ class AccountEdiFormat(models.Model): # Setup the context for the Invoice Form invoice_ctx = invoice.with_company(company) \ - .with_context(default_move_type=move_type, - account_predictive_bills_disable_prediction=True) + .with_context(default_move_type=move_type) # move could be a single record (editing) or be empty (new). with Form(invoice_ctx) as invoice_form: