Skip to content

Commit 2e9e6d4

Browse files
marcelsavegnagorvalyi
authored andcommitted
[RFC] l10n_br_nfe: document.supplement refactor to stackedmodel
1 parent b79f393 commit 2e9e6d4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

l10n_br_nfe/models/document_supplement.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@
66
from odoo.addons.spec_driven_model.models import spec_models
77

88

9-
class NFeSupplement(spec_models.SpecModel):
9+
class NFeSupplement(spec_models.StackedModel):
10+
# FIXME: NFeSupplement should actually inherit from spec_models.SpecModel
11+
# but it seems we had broken NFe or MDFe or CTe tests with SpecModel
12+
# it's probably a spec_driven_model framework issue...
1013
_name = "l10n_br_fiscal.document.supplement"
1114
_inherit = ["l10n_br_fiscal.document.supplement", "nfe.40.infnfesupl"]
1215

16+
_nfe40_odoo_module = "odoo.addons.l10n_br_nfe_spec.models.v4_0.leiaute_nfe_v4_00"
17+
_nfe40_stacking_mixin = "nfe.40.infnfesupl"
18+
1319
nfe40_qrCode = fields.Char(related="qrcode")
1420

1521
nfe40_urlChave = fields.Char(related="url_key")

0 commit comments

Comments
 (0)