diff --git a/bt5/erp5_accounting/PathTemplateItem/portal_property_sheets/AccountTypeConstraint.xml b/bt5/erp5_accounting/PathTemplateItem/portal_property_sheets/AccountTypeConstraint.xml new file mode 100644 index 0000000000000000000000000000000000000000..27cb9dfaf9d3b8f88d9c10ce668adb7bc98a3ad0 --- /dev/null +++ b/bt5/erp5_accounting/PathTemplateItem/portal_property_sheets/AccountTypeConstraint.xml @@ -0,0 +1,70 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Property Sheet" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>_count</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> + </value> + </item> + <item> + <key> <string>_mt_index</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> + </value> + </item> + <item> + <key> <string>_tree</string> </key> + <value> + <persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> + </value> + </item> + <item> + <key> <string>description</string> </key> + <value> + <none/> + </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>AccountTypeConstraint</string> </value> + </item> + <item> + <key> <string>last_id</string> </key> + <value> <string>2</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Property Sheet</string> </value> + </item> + </dictionary> + </pickle> + </record> + <record id="2" aka="AAAAAAAAAAI="> + <pickle> + <global name="Length" module="BTrees.Length"/> + </pickle> + <pickle> <int>0</int> </pickle> + </record> + <record id="3" aka="AAAAAAAAAAM="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> + <record id="4" aka="AAAAAAAAAAQ="> + <pickle> + <global name="OOBTree" module="BTrees.OOBTree"/> + </pickle> + <pickle> + <none/> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_accounting/PathTemplateItem/portal_property_sheets/AccountTypeConstraint/2.xml b/bt5/erp5_accounting/PathTemplateItem/portal_property_sheets/AccountTypeConstraint/2.xml new file mode 100644 index 0000000000000000000000000000000000000000..b79d617f796e06414341f4da2b3d9f601e07461d --- /dev/null +++ b/bt5/erp5_accounting/PathTemplateItem/portal_property_sheets/AccountTypeConstraint/2.xml @@ -0,0 +1,40 @@ +<?xml version="1.0"?> +<ZopeData> + <record id="1" aka="AAAAAAAAAAE="> + <pickle> + <global name="Standard Property" module="erp5.portal_type"/> + </pickle> + <pickle> + <dictionary> + <item> + <key> <string>categories</string> </key> + <value> + <tuple> + <string>elementary_type/string</string> + </tuple> + </value> + </item> + <item> + <key> <string>default_reference</string> </key> + <value> <string>message_inconsistent_account_type</string> </value> + </item> + <item> + <key> <string>description</string> </key> + <value> <string>Error message when wrong account type is found</string> </value> + </item> + <item> + <key> <string>id</string> </key> + <value> <string>2</string> </value> + </item> + <item> + <key> <string>portal_type</string> </key> + <value> <string>Standard Property</string> </value> + </item> + <item> + <key> <string>property_default</string> </key> + <value> <string>python: \'Account is member of ${category}, this should have account_type in ${account_type_list}\'</string> </value> + </item> + </dictionary> + </pickle> + </record> +</ZopeData> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 7f06f5c97a3e07c425a269bd0ba2ed6ddc777190..585cf67a07ccc69767ee1fbb0a5929b0def2bb51 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1445 \ No newline at end of file +1446 \ No newline at end of file diff --git a/bt5/erp5_accounting/bt/template_path_list b/bt5/erp5_accounting/bt/template_path_list index 930f8dd7f8e9eccbc4937cac6e247703f6be9e40..2492f3a758950f0488dbcd3b6d157bec6af508ae 100644 --- a/bt5/erp5_accounting/bt/template_path_list +++ b/bt5/erp5_accounting/bt/template_path_list @@ -1,2 +1,4 @@ portal_categories/account_type/** -portal_categories/financial_section/* \ No newline at end of file +portal_categories/financial_section/* +portal_property_sheets/AccountTypeConstraint +portal_property_sheets/AccountTypeConstraint/** \ No newline at end of file