Skip to content

Commit 2595879

Browse files
committed
Add missing vlist copy in create.
Task #162406
1 parent 8bf82d9 commit 2595879

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stock.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def __setup__(cls):
1818
def create(cls, vlist):
1919
pool = Pool()
2020
Product = pool.get('product.product')
21+
vlist = [x.copy() for x in vlist]
2122
for values in vlist:
2223
if values.get('number') and len(values['number']) > 0:
2324
continue

0 commit comments

Comments
 (0)