-
- Downloads
[FIX] stock: differentiate model in stock_forecasted
When using browser's "history-back" event from a product.product or
product template form view to the forecast report, active_model
previously defined in context is lost and defaults to 'product.template'
but with the previous ID, which can result in showing the forecast of a
template with the id of a product product. It can even give nothing if
the id doesn't exists for the product template model.
closes odoo/odoo#107082
Task: 2985735
Signed-off-by:
William Henrotin (whe) <whe@odoo.com>
Showing
- addons/stock/models/product.py 1 addition, 1 deletionaddons/stock/models/product.py
- addons/stock/static/src/stock_forecasted/forecasted_buttons.js 2 additions, 2 deletions...s/stock/static/src/stock_forecasted/forecasted_buttons.js
- addons/stock/static/src/stock_forecasted/stock_forecasted.js 16 additions, 5 deletionsaddons/stock/static/src/stock_forecasted/stock_forecasted.js
- addons/stock/static/src/stock_forecasted/stock_forecasted.xml 1 addition, 1 deletion...ns/stock/static/src/stock_forecasted/stock_forecasted.xml
- addons/stock/views/stock_forecasted.xml 6 additions, 0 deletionsaddons/stock/views/stock_forecasted.xml
Loading
Please register or sign in to comment