Skip to content
Snippets Groups Projects
Commit 6dd176cc authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] stock: create lot in tree view

- Create a product tracked by lot
- Create a delivery picking

You are allowed to create a new lot for the product although the picking
type doesn't allow it.

This is because of the missing context key `active_picking_id` on which
`_check_create` relies:

https://github.com/odoo/odoo/blob/e5ee5e5b65f85d66c8d59594ead9eece172c4282/addons/stock/models/stock_production_lot.py#L50



opw-2128497

closes odoo/odoo#40793

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 8e467d3a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment