Commit c22f3209 authored by Ivan Tyagov's avatar Ivan Tyagov

Use trade condition.

parent 34dfe182
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
<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
<td>erp5_default_business_process</td>\n <td>Default Sale Order Trade Condition</td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Sale Trade Condition" module="erp5.portal_type"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_Access_contents_information_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_Add_portal_content_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</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>Associate</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_View_Permission</string> </key>
<value>
<tuple>
<string>Assignee</string>
<string>Assignor</string>
<string>Associate</string>
<string>Auditor</string>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>_identity_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_range_criterion</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>specialise/business_process_module/erp5_default_business_process</string>
<string>price_currency/currency_module/1</string>
</tuple>
</value>
</item>
<item>
<key> <string>comment</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>default_reference</string> </key>
<value> <string>default-sale-order-trade-condition</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>1</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<value> <string>Sale Trade Condition</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Default Sale Order Trade Condition</string> </value>
</item>
<item>
<key> <string>version</string> </key>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<global name="PersistentMapping" module="Persistence.mapping"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>data</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -63,6 +63,12 @@ business_process = context.portal_catalog.getResultValue(portal_type=\'Business ...@@ -63,6 +63,12 @@ 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
sale_order_trade_condition = context.portal_catalog.getResultValue(portal_type=\'Sale Trade Condition\',\n
reference=\'default-sale-order-trade-condition\')\n
if isTransitionPossible(sale_order_trade_condition, \'validate\'):\n
sale_order_trade_condition.validate()\n
\n
# check if there is already the euro curency on the instance\n # check if there is already the euro curency on the instance\n
currency = context.portal_catalog.getResultValue(portal_type=\'Currency\',\n currency = context.portal_catalog.getResultValue(portal_type=\'Currency\',\n
title=howto_dict[\'sale_howto_currency_title\'])\n title=howto_dict[\'sale_howto_currency_title\'])\n
......
773 774
\ No newline at end of file \ No newline at end of file
...@@ -26,3 +26,5 @@ portal_categories/role ...@@ -26,3 +26,5 @@ portal_categories/role
portal_categories/role/** portal_categories/role/**
portal_tests/user_tutorial_zuite portal_tests/user_tutorial_zuite
portal_tests/user_tutorial_zuite/** portal_tests/user_tutorial_zuite/**
sale_trade_condition_module/1
sale_trade_condition_module/1/**
\ No newline at end of file
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