Modify cost price jumps over on multiple records
To reproduce: With the product/template view tree Select multiple records Execute Modify Cost Price Only 50% of the records will be updated (alternated records)
Cause: remove() of the records list takes action also on the templates variable as its defined in the same line
Simple python example:
>>> list1 = list2 = [1,2,3,4,5]
>>> for a in list1:
... print(a)
... list2.remove(a)
...
1
3
5
>>> print(list1, list2)
[2, 4] [2, 4]