Skip to content

Commit

Permalink
[IMP] l10n_br_fiscal: add CT-e Menu and Action
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Dec 7, 2024
1 parent d4f3263 commit 6429733
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
20 changes: 20 additions & 0 deletions l10n_br_fiscal/views/l10n_br_fiscal_action.xml
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,26 @@
</field>
</record>

<!-- CT-e Document -->
<record id="cte_document_action" model="ir.actions.act_window">
<field name="name">CT-e</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">l10n_br_fiscal.document</field>
<field name="view_mode">tree,form</field>
<field
name="domain"
eval="[('document_type_id', '=', ref('l10n_br_fiscal.document_57'))]"
/>
<field name="view_id" ref="document_tree" />
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Add a new CTe
</p><p>
Here you can create CT-es
</p>
</field>
</record>

<record id="document_all_action" model="ir.actions.act_window">
<field name="name">All Documents</field>
<field name="type">ir.actions.act_window</field>
Expand Down
9 changes: 9 additions & 0 deletions l10n_br_fiscal/views/l10n_br_fiscal_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@
sequence="11"
/>

<!-- CTe Fiscal Documents-->
<menuitem
id="document_cte_menu"
action="cte_document_action"
name="CT-e"
parent="document_menu"
sequence="20"
/>

<!-- Sub Menu for All Documents-->
<menuitem
id="document_sub_menu"
Expand Down

0 comments on commit 6429733

Please sign in to comment.