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"]