Skip to content

Commit

Permalink
[ADD] better templ/prod prod_type field view
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoParadeda committed Jun 4, 2024
1 parent b9f059e commit aeffa77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion l10n_br_delivery_nfe/views/view_product_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
<field name="inherit_id" ref="product.product_template_form_view" />
<field name="arch" type="xml">
<xpath expr="//label[@for='net_weight']" position="before">
<field name="product_nfe40_esp" />
<field
name="product_nfe40_esp"
attrs="{'invisible':[('product_variant_count', '&gt;', 1), ('is_product_variant', '=', False)]}"
/>
</xpath>
</field>
</record>
Expand Down

0 comments on commit aeffa77

Please sign in to comment.