[FIX] product: print labels only for consu, storable, combo
Before this commit, the "Print Labels" button shows for all products except services. However, this button does not make sense for event_booth, event_ticket, course, ... products So we only show this button for storable, consumable and combo products. Task-3390587 closes odoo/odoo#136753 Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<form string="Product">
|
||||
<header>
|
||||
<button string="Print Labels" type="object" name="action_open_label_layout" invisible="detailed_type == 'service'"/>
|
||||
<button string="Print Labels" type="object" name="action_open_label_layout" invisible="detailed_type not in ['consu', 'product', 'combo']"/>
|
||||
</header>
|
||||
<sheet name="product_form">
|
||||
<field name='product_variant_count' invisible='1'/>
|
||||
@@ -238,7 +238,8 @@
|
||||
<field name="arch" type="xml">
|
||||
<form string="Variant Information" duplicate="false">
|
||||
<header>
|
||||
<button string="Print Labels" type="object" name="action_open_label_layout"/>
|
||||
<field name="detailed_type" invisible="1"/>
|
||||
<button string="Print Labels" type="object" name="action_open_label_layout" invisible="detailed_type not in ['consu', 'product', 'combo']"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box"/>
|
||||
|
||||
Reference in New Issue
Block a user