Merge branch 'imp/15.0/H11044_hr_commission__margin_threshold_no_commission_product' into '15.0-test'

imp/15.0/H11044_hr_commission__margin_threshold_no_commission_product into 15.0-test

See merge request hibou-io/hibou-odoo/suite!1492
This commit is contained in:
Hibou Bot
2022-10-03 19:23:01 +00:00

View File

@@ -6,9 +6,12 @@
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//group[@name='group_general']" position="inside">
<xpath expr="//div[@name='options']" position="inside">
<field name="can_edit_no_commission" invisible="1"/>
<field name="no_commission" attrs="{'readonly': [('can_edit_no_commission', '=', False)]}"/>
<span class="d-inline-block">
<field name="no_commission" attrs="{'readonly': [('can_edit_no_commission', '=', False)]}"/>
<label for="no_commission"/>
</span>
</xpath>
</field>
</record>