Commit 7fdd3251 authored by Jérome Perrin's avatar Jérome Perrin

group can be None, so this sometimes fail in AttributeError

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40353 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3f29c43f
......@@ -66,7 +66,7 @@ def isSource(accounting_transaction):\n
source_section = accounting_transaction.getSourceSectionValue()\n
if source_section is None:\n
return False\n
group = source_section.getGroup(base=True)\n
group = source_section.getGroup(base=True) or \'\'\n
if section_category_strict:\n
return group == section_category\n
return group.startswith(section_category)\n
......@@ -77,7 +77,7 @@ def isDestination(accounting_transaction):\n
destination_section = accounting_transaction.getDestinationSectionValue()\n
if destination_section is None:\n
return False\n
group = destination_section.getGroup(base=True)\n
group = destination_section.getGroup(base=True) or \'\' \n
if section_category_strict:\n
return group == section_category\n
return group.startswith(section_category)\n
......@@ -272,6 +272,81 @@ return line_list\n
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>kw</string>
<string>Products.PythonScripts.standard</string>
<string>Object</string>
<string>line_list</string>
<string>_getattr_</string>
<string>context</string>
<string>request</string>
<string>portal</string>
<string>portal_selections</string>
<string>selection_name</string>
<string>selection_params</string>
<string>section_category</string>
<string>section_category_strict</string>
<string>isSource</string>
<string>isDestination</string>
<string>currency</string>
<string>checked_uid_list</string>
<string>getObject</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>uid</string>
<string>delivery_list</string>
<string>params</string>
<string>None</string>
<string>_write_</string>
<string>dict</string>
<string>account_reference_cache</string>
<string>getAccountReference</string>
<string>getTitle</string>
<string>bank_account_title_cache</string>
<string>getBankAccountTitle</string>
<string>accounting_currency_reference_cache</string>
<string>getAccountingCurrencyReference</string>
<string>portal_type</string>
<string>delivery</string>
<string>is_source</string>
<string>is_destination</string>
<string>movement</string>
<string>node</string>
<string>node_title</string>
<string>node_account_type_title</string>
<string>node_financial_section_title</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountingTransactionModule_getAccountingLineReportLineList</string> </value>
......
1390
\ No newline at end of file
1391
\ 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