From 999759233fefe93b365e8e9ea3363ea00928e9f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Sat, 28 Aug 2021 20:22:43 -0300 Subject: [PATCH] [FIX] incorterm_id in _shadowed_fields in l10n_br_delivery fixes #1596 --- l10n_br_delivery/models/__init__.py | 1 + l10n_br_delivery/models/account_invoice.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 l10n_br_delivery/models/account_invoice.py diff --git a/l10n_br_delivery/models/__init__.py b/l10n_br_delivery/models/__init__.py index 8ce15a2bb494..99607573dbb5 100644 --- a/l10n_br_delivery/models/__init__.py +++ b/l10n_br_delivery/models/__init__.py @@ -1,5 +1,6 @@ # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +from . import account_invoice from . import delivery_carrier from . import vehicle from . import sale_order diff --git a/l10n_br_delivery/models/account_invoice.py b/l10n_br_delivery/models/account_invoice.py new file mode 100644 index 000000000000..aef89cf5a8a1 --- /dev/null +++ b/l10n_br_delivery/models/account_invoice.py @@ -0,0 +1,12 @@ +# Copyright 2019 Akretion (Raphaƫl Valyi ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, models + + +class AccountInvoice(models.Model): + _inherit = "account.invoice" + + @api.model + def _shadowed_fields(self): + return super()._shadowed_fields() + ["incoterm_id"]