Commit 74e481c5 authored by Mame Coumba Sall's avatar Mame Coumba Sall

2009-05-26 mame

* use quantity_unit defined on movement to define quantity_unit on item

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27189 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 367cf1dd
...@@ -78,7 +78,7 @@ for line in kw.get(\'listbox\'):\n ...@@ -78,7 +78,7 @@ for line in kw.get(\'listbox\'):\n
title=line[\'title\'],\n title=line[\'title\'],\n
reference=line[\'reference\'],\n reference=line[\'reference\'],\n
quantity=line[\'quantity\'],\n quantity=line[\'quantity\'],\n
quantity_unit=context.getResourceValue().getQuantityUnit())\n quantity_unit=context.getQuantityUnit())\n
item.validate()\n item.validate()\n
item_list.append(item) \n item_list.append(item) \n
\n \n
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
result = context.Item_getResourceValue() and context.Item_getResourceValue().getQuantityUnitList() and [(\'\', \'\')] + [(x.getTranslatedLogicalPath(), x.getCategoryRelativeUrl(base=0)) for x in context.Item_getResourceValue().getQuantityUnitValueList()] or [(\'\', \'\')]\n result = context.Item_getResourceValue() and context.Item_getResourceValue().getQuantityUnitList() and [(\'\', \'\')] + [(x.getTranslatedLogicalPath(), x.getCategoryRelativeUrl(base=0)) for x in context.Item_getResourceValue().getQuantityUnitValueList()] or [(\'\', \'\')]\n
\n \n
else:\n else:\n
result = [(\'\', \'\')]\n result = [(x.getTranslatedLogicalPath(), x.getCategoryRelativeUrl(base=0)) for x in context.AggregateValue().getQuantityUnitValueList()] or [(\'\', \'\')]\n
return result\n return result\n
</string> </value> </string> </value>
</item> </item>
......
121 122
\ 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