Commit 7a9b6e69 authored by Jérome Perrin's avatar Jérome Perrin

There's no reason to convert quantity steps to int.

Call accessors directly to prevent errors when no supply line exists.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31733 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7fb5f271
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:[str(int(x)) for x in here.Resource_getDefaultInternalSupplyLine().getQuantityStepList()]</string> </value> <value> <string>python:[str(x) for x in context.getInternalSupplyLineQuantityStepList([])]</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:[str(int(x)) for x in here.Resource_getDefaultPurchaseSupplyLine().getQuantityStepList()]</string> </value> <value> <string>python:[str(x) for x in context.getPurchaseSupplyLineQuantityStepList([])]</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:[str(int(x)) for x in here.Resource_getDefaultSaleSupplyLine().getQuantityStepList()]</string> </value> <value> <string>python:[str(x) for x in context.getSaleSupplyLineQuantityStepList([])]</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
413 414
\ No newline at end of file \ 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