hide_update_quantity_button/views/product_views.xml

14 lines
709 B
XML
Executable File

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherit the product template form view to modify the Update Quantity button visibility -->
<record id="product_template_form_view_procurement_button_inherit" model="ir.ui.view">
<field name="name">product.template.form.view.procurement.button.inherit</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="stock.view_template_property_form"/>
<field name="arch" type="xml">
<xpath expr="//a[@name='action_open_quants']" position="attributes">
<attribute name="groups">base.group_erp_manager</attribute>
</xpath>
</field>
</record>
</odoo>