Commit 33f1ef9c authored by Ivan Tyagov's avatar Ivan Tyagov

Fix tests.

parent 07da2461
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Category" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_folders_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>group/my_group</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>my_group</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>My Group</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Category" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_folders_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Copy_or_Move_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Delete_objects_Permission</string> </key>
<value>
<tuple>
<string>Assignor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Modify_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Manager</string>
<string>Owner</string>
</tuple>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>incoterm/cpt</string>
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>cpt</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Category</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>CPT</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -90,6 +90,11 @@ ...@@ -90,6 +90,11 @@
<td>//input[@name="field_my_title"]</td>\n <td>//input[@name="field_my_title"]</td>\n
<td tal:content="python: here.Zuite_getHowToInfo()[\'sale_howto_product_title\']"></td>\n <td tal:content="python: here.Zuite_getHowToInfo()[\'sale_howto_product_title\']"></td>\n
</tr>\n </tr>\n
<tr>\n
<td>select</td>\n
<td>//select[@name="field_my_source_section"]</td>\n
<td tal:content="python: here.Zuite_getHowToInfo()[\'sale_howto_organisation_title\']"></td>\n
</tr>\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>//input[@name="field_my_source_title"]</td>\n <td>//input[@name="field_my_source_title"]</td>\n
...@@ -120,6 +125,12 @@ ...@@ -120,6 +125,12 @@
<td>//select[@name="field_my_delivery_mode"]</td>\n <td>//select[@name="field_my_delivery_mode"]</td>\n
<td>AIR</td>\n <td>AIR</td>\n
</tr>\n </tr>\n
<tr>\n
<td>select</td>\n
<td>//select[@name="field_my_incoterm"]</td>\n
<td>CPT</td>\n
</tr>\n
\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>//input[@name="field_my_specialise_title"]</td>\n <td>//input[@name="field_my_specialise_title"]</td>\n
......
...@@ -63,7 +63,7 @@ business_process = context.portal_catalog.getResultValue(portal_type=\'Business ...@@ -63,7 +63,7 @@ business_process = context.portal_catalog.getResultValue(portal_type=\'Business
if isTransitionPossible(business_process, \'validate\'):\n if isTransitionPossible(business_process, \'validate\'):\n
business_process.validate()\n business_process.validate()\n
\n \n
# XXX: add default sale order trade condition\n # add default sale order trade condition\n
sale_order_trade_condition = context.portal_catalog.getResultValue(portal_type=\'Sale Trade Condition\',\n sale_order_trade_condition = context.portal_catalog.getResultValue(portal_type=\'Sale Trade Condition\',\n
reference=\'default-sale-order-trade-condition\')\n reference=\'default-sale-order-trade-condition\')\n
if isTransitionPossible(sale_order_trade_condition, \'validate\'):\n if isTransitionPossible(sale_order_trade_condition, \'validate\'):\n
...@@ -110,6 +110,7 @@ pref = getattr(context.portal_preferences, howto_dict[\'howto_preference_id\'], ...@@ -110,6 +110,7 @@ pref = getattr(context.portal_preferences, howto_dict[\'howto_preference_id\'],
if pref is None:\n if pref is None:\n
pref = context.portal_preferences.newContent(portal_type="Preference",\n pref = context.portal_preferences.newContent(portal_type="Preference",\n
id=howto_dict[\'howto_preference_id\'])\n id=howto_dict[\'howto_preference_id\'])\n
pref.setPreferredAccountingTransactionSectionCategory(\'group/my_group\')\n
if isTransitionPossible(pref, \'enable\'):\n if isTransitionPossible(pref, \'enable\'):\n
pref.enable()\n pref.enable()\n
\n \n
......
774 775
\ No newline at end of file \ No newline at end of file
...@@ -10,6 +10,10 @@ portal_categories/function/sales ...@@ -10,6 +10,10 @@ portal_categories/function/sales
portal_categories/function/sales/** portal_categories/function/sales/**
portal_categories/gender portal_categories/gender
portal_categories/gender/** portal_categories/gender/**
portal_categories/group/my_group
portal_categories/group/my_group/**
portal_categories/incoterm/cpt
portal_categories/incoterm/cpt/**
portal_categories/nationality/french portal_categories/nationality/french
portal_categories/nationality/french/** portal_categories/nationality/french/**
portal_categories/order/normal portal_categories/order/normal
......
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