[IMP] stock: get back Update Quantity button

Get back the "Update Quantity" button on product views.

Task #2006337
This commit is contained in:
svs-odoo
2019-06-27 09:00:21 +00:00
parent e6bdf3e0d0
commit 69185ea5d8
+9
View File
@@ -172,6 +172,9 @@
<field name="arch" type="xml">
<sheet position="before">
<header>
<button string="Update Quantity" type="object"
name="action_open_quants"
attrs="{'invisible': [('type', '!=', 'product')]}"/>
<button string="Replenish" type="action"
name="%(action_product_replenish)d"
context="{'default_product_id': id}"
@@ -197,6 +200,9 @@
<field name="arch" type="xml">
<data>
<header position="inside">
<button string="Update Quantity" type="object"
name="action_open_quants"
attrs="{'invisible': [('type', '!=', 'product')]}"/>
<button string="Replenish" type="action"
name="%(action_product_replenish)d"
context="{'default_product_id': id}"
@@ -287,6 +293,9 @@
<field name="arch" type="xml">
<data>
<header position="inside" >
<button string="Update Quantity" type="object"
name="action_open_quants"
attrs="{'invisible': [('type', '!=', 'product')]}"/>
<button string="Replenish" type="action"
name="%(action_product_replenish)d"
context="{'default_product_tmpl_id': id}"