Commit 9b3034b0 authored by Romain Courteaud's avatar Romain Courteaud

Prevent AttributeError exception when...

Prevent AttributeError exception when preferred_accounting_transaction_section_category is not yet defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24736 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04c66cbb
...@@ -267,18 +267,15 @@ ...@@ -267,18 +267,15 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="TALESMethod" module="Products.Formulator.TALESField"/>
<string>Products.Formulator.TALESField</string> <tuple/>
<string>TALESMethod</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python: [(\'\', \'\')] + [(x.getTitle(), x.getRelativeUrl()) for x in here.portal_categories.resolveCategory(here.getPreferredAccountingTransactionSectionCategory()).getGroupRelatedValueList(portal_type=\'Organisation\')]</string> </value> <value> <string>python: [(\'\', \'\')] + [(x.getTitle(), x.getRelativeUrl()) for x in here.portal_categories.resolveCategory(here.getPreferredAccountingTransactionSectionCategory(\'portal_categories\')).getGroupRelatedValueList(portal_type=\'Organisation\')]</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
816 817
\ No newline at end of file \ 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