summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2019-10-09 13:41:51 +0000
committerfw-bot <otis@odoo.com>2019-10-10 06:33:35 +0000
commit0fac83a5da9d49b2dd34d2b781c815c49a6474ab (patch)
tree1f353b430f4b2d2da0b9b85641a0706496da5f7c
parentece4335e46153475ec7ac6d7504ae7e6858cc09e (diff)
[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>
-rw-r--r--addons/stock/wizard/product_replenish_views.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/stock/wizard/product_replenish_views.xml b/addons/stock/wizard/product_replenish_views.xml
index 0f73e4c60d8..0516d11d697 100644
--- a/addons/stock/wizard/product_replenish_views.xml
+++ b/addons/stock/wizard/product_replenish_views.xml
@@ -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>