Skip to content

Commit

Permalink
[REF] +incorterm_id in fiscal doc fixes #1596
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Aug 28, 2021
1 parent 7e98002 commit 80fe35b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_br_account/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from . import fiscal_tax_group
from . import account_tax_template
from . import account_tax
from . import fiscal_document_mixin
from . import fiscal_tax
from . import fiscal_operation
from . import fiscal_operation_line
Expand Down
17 changes: 17 additions & 0 deletions l10n_br_account/models/fiscal_document_mixin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (C) 2021-Today - Akretion (<http://www.akretion.com>).
# @author Magno Costa <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import fields, models


class FiscalDocumentMixin(models.AbstractModel):
_inherit = "l10n_br_fiscal.document.mixin"

incoterm_id = fields.Many2one(
comodel_name="account.incoterms",
string="Incoterm",
help="International Commercial Terms are a series of"
" predefined commercial terms used in international"
" transactions.",
)

0 comments on commit 80fe35b

Please sign in to comment.