Skip to content

Commit

Permalink
Merge PR #3412 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by rvalyi
  • Loading branch information
OCA-git-bot committed Oct 2, 2024
2 parents 8a1be97 + 4f9f7bf commit 20269bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions l10n_br_fiscal_closing/models/closing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from odoo.addons.l10n_br_fiscal.constants.fiscal import (
DOCUMENT_ISSUER_COMPANY,
MODELO_FISCAL_CFE,
MODELO_FISCAL_CTE,
MODELO_FISCAL_CUPOM_FISCAL_ECF,
MODELO_FISCAL_EMISSAO_PRODUTO,
MODELO_FISCAL_EMISSAO_SERVICO,
Expand All @@ -42,6 +43,7 @@
MODELO_FISCAL_CUPOM_FISCAL_ECF: "cfe_ecf",
MODELO_FISCAL_NFSE: "nfse",
MODELO_FISCAL_RL: "rl",
MODELO_FISCAL_CTE: "cte",
}

SITUACAO_EDOC = [
Expand Down Expand Up @@ -140,6 +142,13 @@ def _compute_name(self):
domain=[("document_type", "=", MODELO_FISCAL_RL)],
)

document_cte_ids = fields.One2many(
comodel_name="l10n_br_fiscal.document",
string="CTE Documents",
inverse_name="close_id",
domain=[("document_type", "=", MODELO_FISCAL_CTE)],
)

attachment_ids = fields.Many2many(
comodel_name="ir.attachment", string="Other accountant files"
)
Expand Down
3 changes: 3 additions & 0 deletions l10n_br_fiscal_closing/views/closing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@
<page string="RL">
<field name="document_rl_ids" readonly="1" />
</page>
<page string="CTE">
<field name="document_cte_ids" readonly="1" />
</page>
</notebook>
</group>

Expand Down

0 comments on commit 20269bf

Please sign in to comment.