[7.0] code anomaly in stock_move.check_assign
Bug #1262598 reported by
Laetitia Gangloff (Acsone)
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
it seems there is a code anomaly in the method stock_move.
In this method, to set the product_uos_qty the method onchange_quantity is called with ids. The code anomaly is the use of ids instead of [move.id]. We compute product_uos_qty one by one, so it is better to set the id of the current move as parameter to avoid multiple warning message of non-concerning move.
This mistake make the override of onchange_quantity difficult, because the link between the move and the product is impossible to find in case of many move line with same product.
Thank for your help.
Laetitia
Related branches
To post a comment you must log in.