Commit 2eb91df9 authored by Jérome Perrin's avatar Jérome Perrin

don't force resource parameter if resource_value is provided


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20991 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0617683
...@@ -123,7 +123,8 @@ class AccountingTestCase(ERP5TypeTestCase): ...@@ -123,7 +123,8 @@ class AccountingTestCase(ERP5TypeTestCase):
""" """
created_by_builder = kw.pop('created_by_builder', lines is not None) created_by_builder = kw.pop('created_by_builder', lines is not None)
kw.setdefault('start_date', DateTime()) kw.setdefault('start_date', DateTime())
kw.setdefault('resource', 'currency_module/euro') if 'resource_value' not in kw:
kw.setdefault('resource', 'currency_module/euro')
if portal_type in ('Purchase Invoice Transaction', if portal_type in ('Purchase Invoice Transaction',
'Balance Transaction'): 'Balance Transaction'):
if 'destination_section' not in kw: if 'destination_section' not in kw:
......
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