-
-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFC] l10n_br_nfe: refactor from l10n_br_cte wip
- Loading branch information
1 parent
61d1826
commit 665a135
Showing
6 changed files
with
53 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,23 @@ | ||
# Copyright 2023 KMEE (Felipe Zago Rodrigues <[email protected]>) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import fields | ||
|
||
from odoo.addons.spec_driven_model.models import spec_models | ||
|
||
|
||
class NFeSupplement(spec_models.StackedModel): | ||
_name = "l10n_br_fiscal.document.supplement" | ||
_description = "NFe Supplement Document" | ||
_inherit = "nfe.40.infnfesupl" | ||
_inherit = ["l10n_br_fiscal.document.supplement", "nfe.40.infnfesupl"] | ||
_stacked = "nfe.40.infnfesupl" | ||
_field_prefix = "nfe40_" | ||
_schema_name = "nfe" | ||
_schema_version = "4.0.0" | ||
_odoo_module = "l10n_br_nfe" | ||
_spec_module = "odoo.addons.l10n_br_nfe_spec.models.v4_0.leiaute_nfe_v4_00" | ||
_spec_tab_name = "NFe" | ||
_binding_module = "nfelib.nfe.bindings.v4_0.leiaute_nfe_v4_00" | ||
|
||
nfe40_qrCode = fields.Char(related="qrcode") | ||
|
||
nfe40_urlChave = fields.Char(related="url_key") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters