Skip to content

Commit

Permalink
[IMP] l10n_br_fiscal: add product.tag view
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoParadeda committed Oct 4, 2024
1 parent 77f2188 commit b0a68a1
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_br_fiscal/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"views/ncm_view.xml",
"views/nbm_view.xml",
"views/nbs_view.xml",
"views/product_tag_view.xml",
"views/service_type_view.xml",
"views/cest_view.xml",
"views/product_genre_view.xml",
Expand Down
17 changes: 17 additions & 0 deletions l10n_br_fiscal/views/l10n_br_fiscal_action.xml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,23 @@
</field>
</record>

<!-- Product Tag -->
<record id="product_tag_action" model="ir.actions.act_window">
<field name="name">Product Tag</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">l10n_br_fiscal.product.tag</field>
<field name="view_mode">tree</field>
<field name="view_id" ref="product_tag_tree" />
<field name="search_view_id" ref="product_tag_search" />
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new Product Tag
</p><p>
Product Tags assist in matching Operation Lines with their corresponding products, ensuring accurate identification and organization within the system.
</p>
</field>
</record>

<!-- Subsequent Document-->
<record id="subsequent_document_action" model="ir.actions.act_window">
<field name="name">Subsequent Document</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 @@ -524,6 +524,15 @@
sequence="30"
/>

<!-- Product Tag -->
<menuitem
id="product_tag_menu"
action="product_tag_action"
groups="l10n_br_fiscal.group_manager"
parent="operations_config_menu"
sequence="45"
/>

<!-- Others Settings -->
<menuitem
id="others_config_menu"
Expand Down
31 changes: 31 additions & 0 deletions l10n_br_fiscal/views/product_tag_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright (C) 2024-Today - KMEE (<http://www.kmee.com.br>).
@author Diego Paradeda <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>

<record id="product_tag_search" model="ir.ui.view">
<field name="name">l10n_br_fiscal.product_tag.search</field>
<field name="model">l10n_br_fiscal.product.tag</field>
<field name="arch" type="xml">
<search string="Product Tag">
<field name="name" />
</search>
</field>
</record>

<record id="product_tag_tree" model="ir.ui.view">
<field name="name">l10n_br_fiscal.product_tag.tree</field>
<field name="model">l10n_br_fiscal.product.tag</field>
<field name="arch" type="xml">
<tree editable="top">
<field name="name" />
<field name="create_uid" />
<field name="create_date" />
</tree>
</field>
</record>

</odoo>

0 comments on commit b0a68a1

Please sign in to comment.