odoo/addons/procurement/views/product_views.xml

34 lines
1.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="product_template_view_form_procurement_button" model="ir.ui.view">
<field name="name">product.template.procurement.stat.button</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button class="oe_stat_button" name="%(procurement.procurement_order_action_product_template_stat)d"
icon="fa-truck" string="Procurements" type="action"
groups="base.group_no_one"
attrs="{'invisible':[('type', '=', 'service')]}"/>
</xpath>
</field>
</record>
<record id="product_product_view_form_procurement_button" model="ir.ui.view">
<field name="name">product.product.procurement.stat.button</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button class="oe_stat_button" name="%(procurement.procurement_order_action_product_product_stat)d"
icon="fa-truck" string="Procurements" type="action"
groups="base.group_no_one"
attrs="{'invisible':[('type', '=', 'service')]}"/>
</xpath>
</field>
</record>
</data>
</odoo>