Commit 7754bfcc authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_trade: can select multi resource in report

parent b6fe0c3a
......@@ -13,7 +13,7 @@ inventory_list = getCurrentInventoryList(
group_by_resource = 1,
group_by_variation = 1,
resourceType=portal.getPortalProductTypeList(),
resource_uid = context.getResourceUid(),
resource_uid = context.getResourceUidList(),
at_date = at_date
)
......
......@@ -106,7 +106,7 @@
<string>my_destination_title</string>
<string>my_destination_section_title</string>
<string>my_valuation_method</string>
<string>my_resource_title</string>
<string>my_resource_title_list</string>
</list>
</value>
</item>
......
......@@ -10,13 +10,17 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>enabled</string>
<string>allow_creation</string>
<string>height</string>
<string>portal_type</string>
<string>title</string>
<string>view_separator</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_resource_title</string> </value>
<value> <string>my_resource_title_list</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -41,10 +45,6 @@
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
......@@ -61,7 +61,21 @@
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<key> <string>height</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>view_separator</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
......@@ -72,20 +86,43 @@
<value>
<dictionary>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
<key> <string>allow_creation</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_view_mode_resource_title</string> </value>
<value> <string>my_view_mode_source_trade_title_list</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewTradeFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
<key> <string>height</string> </key>
<value> <int>5</int> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value>
<list>
<tuple>
<string>Resource</string>
<string>Resource</string>
</tuple>
</list>
</value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Product or Service</string> </value>
</item>
<item>
<key> <string>view_separator</string> </key>
<value> <string encoding="cdata"><![CDATA[
<br />
]]></string> </value>
</item>
</dictionary>
</value>
......@@ -93,4 +130,17 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: [(x, x) for x in (list(here.getPortalProductTypeList()) + list(here.getPortalServiceTypeList()))]</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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