Commit ae0c1145 authored by Jérome Perrin's avatar Jérome Perrin

Accounting periods have a simulation state, not a validation state

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19709 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bea0c30e
...@@ -80,7 +80,7 @@ if section is not None:\n ...@@ -80,7 +80,7 @@ if section is not None:\n
for accounting_period in section.contentValues(\n for accounting_period in section.contentValues(\n
portal_type=\'Accounting Period\',\n portal_type=\'Accounting Period\',\n
checked_permission=\'View\'):\n checked_permission=\'View\'):\n
if accounting_period.getValidationState() in (\n if accounting_period.getSimulationState() in (\n
\'draft\', \'cancelled\', \'deleted\'):\n \'draft\', \'cancelled\', \'deleted\'):\n
continue\n continue\n
if accounting_period.getStartDate().earliestTime()\\\n if accounting_period.getStartDate().earliestTime()\\\n
......
...@@ -80,7 +80,7 @@ if section is not None:\n ...@@ -80,7 +80,7 @@ if section is not None:\n
for accounting_period in section.contentValues(\n for accounting_period in section.contentValues(\n
portal_type=\'Accounting Period\',\n portal_type=\'Accounting Period\',\n
checked_permission=\'View\'):\n checked_permission=\'View\'):\n
if accounting_period.getValidationState() in (\n if accounting_period.getSimulationState() in (\n
\'draft\', \'cancelled\', \'deleted\'):\n \'draft\', \'cancelled\', \'deleted\'):\n
continue\n continue\n
if accounting_period.getStartDate().earliestTime()\\\n if accounting_period.getStartDate().earliestTime()\\\n
......
631 632
\ 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