-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by rvalyi
- Loading branch information
Showing
8 changed files
with
37 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 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, models | ||
|
||
|
||
class DocumentSupplement(models.Model): | ||
_name = "l10n_br_fiscal.document.supplement" | ||
_description = "Document Supplement Data" | ||
|
||
qrcode = fields.Char(string="QR Code") | ||
|
||
url_key = fields.Char(string="QR Code 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
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,14 +1,22 @@ | ||
# 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): | ||
# FIXME: NFeSupplement should actually inherit from spec_models.SpecModel | ||
# but it seems we had broken NFe or MDFe or CTe tests with SpecModel | ||
# it's probably a spec_driven_model framework issue... So it has been reverted | ||
# to StackedModel in https://github.com/OCA/l10n-brazil/pull/3445 | ||
_name = "l10n_br_fiscal.document.supplement" | ||
_description = "NFe Supplement Document" | ||
_inherit = "nfe.40.infnfesupl" | ||
_inherit = ["l10n_br_fiscal.document.supplement", "nfe.40.infnfesupl"] | ||
|
||
_nfe40_odoo_module = "odoo.addons.l10n_br_nfe_spec.models.v4_0.leiaute_nfe_v4_00" | ||
_nfe40_stacking_mixin = "nfe.40.infnfesupl" | ||
|
||
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