Commit ae9dab7d authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_trade: can only display selected product line product

parent cfa08898
...@@ -6,15 +6,20 @@ node_uid = context.getDestinationUid() ...@@ -6,15 +6,20 @@ node_uid = context.getDestinationUid()
valuation_method = context.getValuationMethod() valuation_method = context.getValuationMethod()
relative_url = context.getRelativeUrl() relative_url = context.getRelativeUrl()
at_date = context.getAtDate() at_date = context.getAtDate()
kw = {
"section_uid": section_uid,
"node_uid": node_uid,
"group_by_resource": 1,
"group_by_variation": 1,
"resourceType": portal.getPortalProductTypeList(),
"at_date": at_date
}
inventory_list = getCurrentInventoryList( product_line = context.getProductLine()
section_uid = section_uid, if product_line:
node_uid = node_uid, kw['resource_category'] = 'product_line/%s' % product_line
group_by_resource = 1,
group_by_variation = 1, inventory_list = getCurrentInventoryList(**kw)
resourceType=portal.getPortalProductTypeList(),
at_date = at_date
)
line_tag = '%s:lineUpdateTotalAssetPrice' % relative_url line_tag = '%s:lineUpdateTotalAssetPrice' % relative_url
#only after all calculation are finished then change report state #only after all calculation are finished then change report state
......
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
<string>my_destination_title</string> <string>my_destination_title</string>
<string>my_destination_section_title</string> <string>my_destination_section_title</string>
<string>my_valuation_method</string> <string>my_valuation_method</string>
<string>my_product_line</string>
</list> </list>
</value> </value>
</item> </item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_product_line</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<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>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<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>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_product_line</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>Base_viewPDMFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
</dictionary>
</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