Commit 09130dff authored by Jérome Perrin's avatar Jérome Perrin

For accounting periods to work properly, they must be created in an

organisation having a group and an accounting currency.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43804 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 795b0587
...@@ -1736,7 +1736,9 @@ class TestStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin): ...@@ -1736,7 +1736,9 @@ class TestStandardConfiguratorWorkflow(TestLiveConfiguratorWorkflowMixin):
def stepValidatedAccountingPeriods(self, sequence=None, sequence_list=None, **kw): def stepValidatedAccountingPeriods(self, sequence=None, sequence_list=None, **kw):
organisation = self.portal.organisation_module.newContent( organisation = self.portal.organisation_module.newContent(
portal_type='Organisation') portal_type='Organisation',
price_currency_value=self.portal.currency_module.EUR,
group='my_group')
accounting_period = organisation.newContent( accounting_period = organisation.newContent(
portal_type='Accounting Period', portal_type='Accounting Period',
start_date=DateTime(2001, 01, 01), start_date=DateTime(2001, 01, 01),
......
570 571
\ 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