diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml index b398f5dca1574dc81e481e64fe9cdac9105724b4..4414ef5c0403c87efd64ca96ca7be2481d908603 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml @@ -55,6 +55,8 @@ if kw.get(\'stat\'):\n selection_params = context.portal_selections.getSelectionParamsFor(selection_name)\n selection_domain = context.portal_selections.getSelectionDomainDictFor(selection_name)\n + if callable(selection_domain):\n + selection_domain = selection_domain()\n selection_report = context.portal_selections.getSelectionReportDictFor(selection_name)\n if selection_domain:\n kwd[\'selection_domain\'] = selection_domain\n diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_statBalance.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_statBalance.xml index f39098999ac5b6dcb125ed46180cfc18458e0a02..40454c2becb8e4c48d4436406d42b31fbf295d88 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_statBalance.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_statBalance.xml @@ -60,6 +60,8 @@ params[\'omit_asset_decrease\'] = omit_asset_decrease\n params[\'omit_simulation\'] = True\n \n selection_domain = context.portal_selections.getSelectionDomainDictFor(selection_name)\n +if callable(selection_domain):\n + selection_domain = selection_domain()\n selection_report = context.portal_selections.getSelectionReportDictFor(selection_name)\n if selection_domain:\n params[\'selection_domain\'] = selection_domain\n diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 0e8ebf59f2689cb1501556ab09d4aee23414f450..3559f242bc484e138a47eb958f1b33ee885e3d0c 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1476 \ No newline at end of file +1477 \ No newline at end of file