[7.0] code anomaly in stock_move.check_assign

Bug #1262598 reported by Laetitia Gangloff (Acsone)
10
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.check_assign.

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

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.