Commit cfbe07d6 authored by Nicolas Delaby's avatar Nicolas Delaby

Restrict display of aggregated_items on Order views if context is a movement

and if there no variation categories configured.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40730 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f75f722a
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
for Base_viewTradeFieldLibrary/my_view_mode_aggregate_title_list.enable\n for Base_viewTradeFieldLibrary/my_view_mode_aggregate_title_list.enable\n
"""\n """\n
\n \n
if context.getResource() and context.getResourceValue().getAggregatedPortalTypeList():\n if context.getResource() and context.getResourceValue().getAggregatedPortalTypeList() and context.isMovement() and not context.getVariationCategoryList():\n
return True\n return True\n
if context.getAggregate():\n if context.getAggregate():\n
return True\n return True\n
......
1041 1042
\ 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