Skip to content

Commit

Permalink
[FIX] incorterm_id in _shadowed_fields in l10n_br_delivery fixes OCA#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi authored and mbcosta committed Sep 29, 2022
1 parent 7a1973d commit 539fa0f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_br_delivery/models/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 12 additions & 0 deletions l10n_br_delivery/models/account_invoice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2019 Akretion (Raphaël Valyi <[email protected]>)
# 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"]

0 comments on commit 539fa0f

Please sign in to comment.