Commit 06d77068 authored by Jérome Perrin's avatar Jérome Perrin

pdm: repair converted inventory report dialog

formulator does not seem to like generator for listfield items
parent ce99e803
......@@ -40,8 +40,8 @@ class ResourceSelection:
"""
traverse = self.portal.portal_categories['metric_type'].restrictedTraverse
display = getPreferredCategoryDisplayMethodId()
return sorted((getattr(traverse(metric_type),display)(), metric_type)
for metric_type in self.getCommonMetricTypeList())
return sorted([(getattr(traverse(metric_type),display)(), metric_type)
for metric_type in self.getCommonMetricTypeList()])
def getCommonQuantityUnitItemList(self):
"""
......
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