Skip to content
Permalink
Browse files

[FIX] stock: Add Default product on replenish wizard

Fixes #38238
default_get expects  default_product_id or default_product_tmpl_id in the Context, while it was not passed in Action here.

This commits adds default_product_id
  • Loading branch information...
sswapnesh committed Oct 8, 2019
1 parent bb5ceea commit e4232d7ad280d7f73e5bc07e30ef760145930e5d
Showing with 1 addition and 0 deletions.
  1. +1 −0 addons/stock/wizard/product_replenish_views.xml
@@ -51,6 +51,7 @@
<field name="res_model">product.replenish</field>
<field name="binding_model_id" ref="product.model_product_product"/>
<field name="view_mode">form</field>
<field name="context">{'default_product_id': active_id}</field>
<field name="view_id" ref="view_product_replenish"/>
<field name="target">new</field>
</record>

0 comments on commit e4232d7

Please sign in to comment.
You can’t perform that action at this time.