Skip to content
Snippets Groups Projects
Commit e176ba0b authored by William Henrotin's avatar William Henrotin
Browse files

[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: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent 3776faa1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment