Commit 79719b73 authored by Jérome Perrin's avatar Jérome Perrin

Only show quantity unit that are available on a resource, as it does not make...

Only show quantity unit that are available on a resource, as it does not make sense to use a quantity unit that does not exists on the resource, because it won't be possible to convert this quantity  (like in erp5_trade)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24276 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6908006f
......@@ -124,7 +124,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: getattr(here.portal_categories.quantity_unit, preferences.getPreference(\'preferred_category_child_item_list_method_id\', \'getCategoryChildCompactLogicalPathItemList\'))(local_sort_id=(\'int_index\', \'translated_title\'), checked_permission=\'View\')</string> </value>
<value> <string>python: here.getResource() and here.getResourceValue().getQuantityUnitList() and [(\'\', \'\')] + [(x.getLogicalPath(), x.getCategoryRelativeUrl(base=0)) for x in here.getResourceValue().getQuantityUnitValueList()] or [(\'\', \'\')]</string> </value>
</item>
</dictionary>
</pickle>
......
150
\ No newline at end of file
151
\ 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