Commit 1b0bc03f authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_mrp_quality_assurance: speed up quality module

parent 39cd8c98
if 'portal_type' not in kw:
portal_type=('ACOM', 'Defect Correction', 'Defect Declaration', 'Gate', 'Quality Control','SMON','Serial Number', 'Traceability')
kw['portal_type'] = portal_type
portal = context.getPortalObject()
return portal.portal_catalog(
parent_uid = portal.quality_assurance_module.getUid(),
**kw)
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="_reconstructor" module="copy_reg"/>
</klass>
<tuple>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
<global name="object" module="__builtin__"/>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>QualityAssuranceModule_searchContent</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -14,6 +14,7 @@
<string>count_method</string>
<string>domain_root_list</string>
<string>domain_tree</string>
<string>list_method</string>
<string>title</string>
</list>
</value>
......@@ -100,7 +101,7 @@
<string>Delivery</string>
</tuple>
<tuple>
<string>aggregate_title</string>
<string>aggregate_reference</string>
<string>VIN</string>
</tuple>
<tuple>
......@@ -149,6 +150,12 @@
<key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>list_method</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value>
......@@ -170,4 +177,17 @@
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Method" module="Products.Formulator.MethodField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>QualityAssuranceModule_searchContent</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