Commit 1eb75ece authored by Ivan Tyagov's avatar Ivan Tyagov

Use agent rather than wrongly used specialise category.

Make sure erp5-hr can override erp5_base.
parent ff4cb062
<base_category_list>
<portal_type id="Assignment">
<item>specialise</item>
<item>agent</item>
</portal_type>
<portal_type id="Career">
<item>specialise</item>
<item>agent</item>
</portal_type>
<portal_type id="Position">
<item>agent</item>
......
......@@ -6,12 +6,33 @@
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_local_properties</string> </key>
<value>
<tuple>
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>business_template_skin_layer_priority</string> </value>
</item>
<item>
<key> <string>type</string> </key>
<value> <string>float</string> </value>
</item>
</dictionary>
</tuple>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>business_template_skin_layer_priority</string> </key>
<value> <float>10.0</float> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>erp5_hr</string> </value>
......
......@@ -73,7 +73,7 @@
<list>
<string>my_title</string>
<string>my_destination_project_title</string>
<string>my_specialise_title</string>
<string>my_agent_title</string>
<string>my_start_date</string>
<string>my_stop_date</string>
<string>my_calendar_title_list</string>
......
......@@ -19,7 +19,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_specialise_title</string> </value>
<value> <string>my_agent_title</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -76,7 +76,7 @@
<dictionary>
<item>
<key> <string>base_category</string> </key>
<value> <string>specialise</string> </value>
<value> <string>agent</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -74,7 +74,7 @@
<string>my_title</string>
<string>my_reference</string>
<string>my_subordination_title</string>
<string>my_specialise_title</string>
<string>my_agent_title</string>
<string>my_role_list</string>
<string>my_function</string>
<string>my_activity</string>
......
......@@ -19,7 +19,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_specialise_title</string> </value>
<value> <string>my_agent_title</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -76,7 +76,7 @@
<dictionary>
<item>
<key> <string>base_category</string> </key>
<value> <string>specialise</string> </value>
<value> <string>agent</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -54,7 +54,7 @@
XXX: Return list of Persons who belong to a position.\n
"""\n
kw[\'portal_type\'] = \'Career\'\n
kw[\'specialise_uid\'] = context.getUid()\n
kw[\'agent_uid\'] = context.getUid()\n
return context.portal_catalog(**kw)\n
</string> </value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<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>_body</string> </key>
<value> <string>"""\n
Return list of Persons that have this position in their Career.\n
"""\n
kw[\'portal_type\'] = \'Career\'\n
kw[\'agent_uid\'] = context.getUid()\n
return [x.getParentValue() for x in context.portal_catalog(**kw)]\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Position_getPersonList</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
15
\ No newline at end of file
16
\ No newline at end of file
Assignment | specialise
Career | specialise
Assignment | agent
Career | agent
Position Announcement | aggregate
Position Announcement | classification
Position Announcement | destination
......
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