[FIX] procurement: do not make reference to stock group
Not created yet if stock is not installed. Can show the procurement buttons without the push/pull rules.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<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="stock.group_adv_location"
|
||||
groups="base.group_no_one"
|
||||
attrs="{'invisible':[('type', '=', 'service')]}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
@@ -24,7 +24,7 @@
|
||||
<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="stock.group_adv_location"
|
||||
groups="base.group_no_one"
|
||||
attrs="{'invisible':[('type', '=', 'service')]}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
@@ -171,6 +171,29 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_template_view_form_procurement_button" model="ir.ui.view">
|
||||
<field name="name">product.template.stock.stat.button.group</field>
|
||||
<field name="model">product.template</field>
|
||||
<field name="inherit_id" ref="procurement.product_template_view_form_procurement_button"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='%(procurement.procurement_order_action_product_template_stat)d']" position="attributes">
|
||||
<attribute name="groups">base.group_no_one,stock.group_adv_location</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_product_view_form_procurement_button" model="ir.ui.view">
|
||||
<field name="name">product.product.stock.stat.button.group</field>
|
||||
<field name="model">product.product</field>
|
||||
<field name="inherit_id" ref="procurement.product_product_view_form_procurement_button"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//button[@name='%(procurement.procurement_order_action_product_product_stat)d']" position="attributes">
|
||||
<attribute name="groups">base.group_no_one,stock.group_adv_location</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record model="ir.ui.view" id="product_template_kanban_stock_view">
|
||||
<field name="name">Product Template Kanban Stock</field>
|
||||
<field name="model">product.template</field>
|
||||
|
||||
Reference in New Issue
Block a user