Commit 952d39f3 authored by Sebastien Robin's avatar Sebastien Robin

Add a call to getPrice because it will be called on reindexation and it...

Add a call to getPrice because it will be called on reindexation and it modifies the line, thus wasting space as the object would be commited twice.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15255 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0c341e82
......@@ -276,6 +276,8 @@ for resource_id in per_resource_dict.keys():\n
cell.setInventory(variation_item["quantity"])\n
else:\n
cell.setQuantity(variation_item["quantity"])\n
line.getPrice() # Call getPrice now because it will be called on reindexation and it modifies the line.\n
# So better modify it here so it\'s only saved once to ZODB.\n
\n
request = context.REQUEST\n
N_ = context.Base_translateString\n
......
310
\ No newline at end of file
313
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment