We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b79f393 commit 2e9e6d4Copy full SHA for 2e9e6d4
l10n_br_nfe/models/document_supplement.py
@@ -6,10 +6,16 @@
6
from odoo.addons.spec_driven_model.models import spec_models
7
8
9
-class NFeSupplement(spec_models.SpecModel):
+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...
13
_name = "l10n_br_fiscal.document.supplement"
14
_inherit = ["l10n_br_fiscal.document.supplement", "nfe.40.infnfesupl"]
15
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
+
19
nfe40_qrCode = fields.Char(related="qrcode")
20
21
nfe40_urlChave = fields.Char(related="url_key")
0 commit comments