diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getAccountingPeriodForDestinationSection.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getAccountingPeriodForDestinationSection.xml index 200750255801a6baf676d113a12c520c2f4ab8c5..743097c3c99f7a4e6441dc77a9552aa18da03fde 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getAccountingPeriodForDestinationSection.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getAccountingPeriodForDestinationSection.xml @@ -80,7 +80,7 @@ if section is not None:\n for accounting_period in section.contentValues(\n portal_type=\'Accounting Period\',\n checked_permission=\'View\'):\n - if accounting_period.getValidationState() in (\n + if accounting_period.getSimulationState() in (\n \'draft\', \'cancelled\', \'deleted\'):\n continue\n if accounting_period.getStartDate().earliestTime()\\\n diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getAccountingPeriodForSourceSection.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getAccountingPeriodForSourceSection.xml index cc89b4ba344a7fb173ececa5c32c33983e035c7f..bcbb3ef795004413f55b3d3c526f896a77041b56 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getAccountingPeriodForSourceSection.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_getAccountingPeriodForSourceSection.xml @@ -80,7 +80,7 @@ if section is not None:\n for accounting_period in section.contentValues(\n portal_type=\'Accounting Period\',\n checked_permission=\'View\'):\n - if accounting_period.getValidationState() in (\n + if accounting_period.getSimulationState() in (\n \'draft\', \'cancelled\', \'deleted\'):\n continue\n if accounting_period.getStartDate().earliestTime()\\\n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 4793663f9f2f7cbe691c9358f8781ea33ef7fcf4..c5ba36b3c368d99de88c947ec0246108d02a86ab 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -631 \ No newline at end of file +632 \ No newline at end of file