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 @@
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.TALESField</string>
<string>TALESMethod</string>
</tuple>
<none/>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<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>
</dictionary>
</pickle>
......
816
\ No newline at end of file
817
\ 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