Skip to content

Commit

Permalink
[IMP] Product view : field on top of Form only for MRP users
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinDupont committed Jan 8, 2025
1 parent a245a4e commit 914ada8
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions mrp_product_characterisation/views/view_product_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,19 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="inherit_id" ref="product.product_template_form_view" />
<field name="arch" type="xml">

<xpath expr="//field[@name='detailed_type']" position="after">
<field name="is_component" />
<field name="is_intermediate" />
<xpath
expr="//field[@name='purchase_ok']/.."
position="after"
groups="mrp.group_mrp_user"
>
<span class="d-inline-block">
<field name="is_component" />
<label for="is_component" />
</span>
<span class="d-inline-block">
<field name="is_intermediate" />
<label for="is_intermediate" />
</span>
</xpath>

</field>
Expand Down

0 comments on commit 914ada8

Please sign in to comment.