[FIX] stock: product replenishment

The replenish action shouldn't be accessible through the action dropdown
(it makes no sense to replenish consumables or services).
It is already accessible on the product/template form when applicable.

Closes https://github.com/odoo/odoo/issues/38238

closes odoo/odoo#38332

X-original-commit: 52d7008da888f1a84e38c6b110450062ac3bceaa
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
Victor Feyens
2019-10-10 06:33:35 +00:00
committed by fw-bot
parent ece4335e46
commit 0fac83a5da
@@ -50,7 +50,9 @@
<field name="name">Replenish</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.replenish</field>
<field name="binding_model_id" ref="product.model_product_product"/>
<!-- binding_model_id evaluated to False
to remove it in existing db's as it was bug-prone -->
<field name="binding_model_id" eval="False"/>
<field name="view_mode">form</field>
<field name="view_id" ref="view_product_replenish"/>
<field name="target">new</field>