From e6b1a83e3ccbe13d814a25fa720704e8da57f5f6 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Wed, 2 Apr 2008 15:24:40 +0000 Subject: [PATCH] 2008-04-02 fabien * use searchFolder instead of contentValues to get the use case. * get the 'validated' use cases instead of the draft. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20282 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_consulting/UseCaseModule_viewUseCaseReportAsSxw.xml | 4 +--- bt5/erp5_consulting/bt/change_log | 4 ++++ bt5/erp5_consulting/bt/revision | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bt5/erp5_consulting/SkinTemplateItem/portal_skins/erp5_consulting/UseCaseModule_viewUseCaseReportAsSxw.xml b/bt5/erp5_consulting/SkinTemplateItem/portal_skins/erp5_consulting/UseCaseModule_viewUseCaseReportAsSxw.xml index da2d5594cb..72128ac994 100644 --- a/bt5/erp5_consulting/SkinTemplateItem/portal_skins/erp5_consulting/UseCaseModule_viewUseCaseReportAsSxw.xml +++ b/bt5/erp5_consulting/SkinTemplateItem/portal_skins/erp5_consulting/UseCaseModule_viewUseCaseReportAsSxw.xml @@ -146,8 +146,7 @@ \n <text:p text:style-name=\'Text body\'>Nexedi SA</text:p>\n \n - <div tal:omit-tag=\'\' tal:repeat=\'usecase python:here.objectValues(portal_type="Use Case",sort_on=(("int_index",),)) or (context,)\'>\n - <tal:block tal:condition="python: usecase.getValidationState() == \'draft\'">\n + <div tal:omit-tag=\'\' tal:repeat=\'usecase python:here.searchFolder(portal_type="Use Case",sort_on=(("int_index",),), validation_state="validated") or (context,)\'>\n <text:h text:style-name=\'Heading 2\' text:level=\'2\' i18n:domain="ui" i18n:translate="">Use Case : <span tal:replace=\'usecase/getTitle\'>Title</span></text:h>\n \n <text:p text:style-name=\'Text body\' tal:content=\'usecase/getDescription\'>Use Case Description</text:p>\n @@ -271,7 +270,6 @@ \n \n \n - </tal:block>\n </div>\n </office:body>\n </office:document-content>\n diff --git a/bt5/erp5_consulting/bt/change_log b/bt5/erp5_consulting/bt/change_log index 55fdc15f4b..1e15786a4c 100644 --- a/bt5/erp5_consulting/bt/change_log +++ b/bt5/erp5_consulting/bt/change_log @@ -1,3 +1,7 @@ +2008-04-02 fabien +* use searchFolder instead of contentValues to get the use case. +* get the 'validated' use cases instead of the draft. + 2008-03-17 fabien * Translate and reindent UseCaseModule_viewUseCaseReportAsSxw. make it working on Use Case Object and Module instead of just module. diff --git a/bt5/erp5_consulting/bt/revision b/bt5/erp5_consulting/bt/revision index dc7b54ad01..dce6588ca1 100644 --- a/bt5/erp5_consulting/bt/revision +++ b/bt5/erp5_consulting/bt/revision @@ -1 +1 @@ -33 \ No newline at end of file +36 \ No newline at end of file -- 2.30.9