Skip to content

Commit

Permalink
[IMP] l10n_br_mdfe: override mdfe30_nAber field
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Dec 18, 2024
1 parent 8d652a9 commit 36b1ad0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion l10n_br_mdfe/models/seguro_carga.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2023 KMEE
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields
from odoo import fields, models

from odoo.addons.spec_driven_model.models import spec_models

Expand All @@ -22,3 +22,17 @@ class MDFeSeguroCarga(spec_models.SpecModel):
("cnpj_cpf", "!=", False),
],
)

mdfe30_nAver = fields.Many2one(
comodel_name="l10n_br_mdfe.seguro.carga.naver",
string="Número da Averbação",
help="Número da Averbação\nInformar as averbações do seguro",
)


class MDFENaver(models.Model):
_name = "l10n_br_mdfe.seguro.carga.naver"
_description = "Número da Averbação"
_rec_name = "mdfe30_nAver"

mdfe30_nAver = fields.Char(string="Nome da Averbação", xsd_required=True)

0 comments on commit 36b1ad0

Please sign in to comment.