From b8f9ca1aa2af1223f5850e437d3ee578b59e830b Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Mon, 8 Dec 2008 11:09:03 +0000
Subject: [PATCH] Add portal_type parameter to worklist URL, in order to filter
 only with chained portal types.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24827 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../accounting_workflow/worklists/1_draft_transaction_list.xml  | 2 +-
 .../worklists/2_planned_confirmed_transaction_list.xml          | 2 +-
 .../worklists/4_started_transaction_list.xml                    | 2 +-
 .../worklists/5_stopped_transaction_list.xml                    | 2 +-
 bt5/erp5_accounting/bt/revision                                 | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/1_draft_transaction_list.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/1_draft_transaction_list.xml
index e127e7f113..a307b21edc 100644
--- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/1_draft_transaction_list.xml
+++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/1_draft_transaction_list.xml
@@ -21,7 +21,7 @@
             <key> <string>actbox_url</string> </key>
             <value> <string encoding="cdata"><![CDATA[
 
-accounting_module/view?reset:int=1&local_roles=Owner&simulation_state=draft
+accounting_module/view?reset:int=1&local_roles=Owner&simulation_state=draft&portal_type=%(portal_type)s
 
 ]]></string> </value>
         </item>
diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/2_planned_confirmed_transaction_list.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/2_planned_confirmed_transaction_list.xml
index 22646cf10b..214ea4c537 100644
--- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/2_planned_confirmed_transaction_list.xml
+++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/2_planned_confirmed_transaction_list.xml
@@ -21,7 +21,7 @@
             <key> <string>actbox_url</string> </key>
             <value> <string encoding="cdata"><![CDATA[
 
-accounting_module/view?reset:int=1&local_roles=Assignee&simulation_state:list=planned&simulation_state:list=confirmed
+accounting_module/view?reset:int=1&local_roles=Assignee&simulation_state:list=planned&simulation_state:list=confirmed&portal_type=%(portal_type)s
 
 ]]></string> </value>
         </item>
diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/4_started_transaction_list.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/4_started_transaction_list.xml
index 06a970504e..93678b1364 100644
--- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/4_started_transaction_list.xml
+++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/4_started_transaction_list.xml
@@ -21,7 +21,7 @@
             <key> <string>actbox_url</string> </key>
             <value> <string encoding="cdata"><![CDATA[
 
-accounting_module/view?reset:int=1&local_roles=Assignee&simulation_state=started
+accounting_module/view?reset:int=1&local_roles=Assignee&simulation_state=started&portal_type=%(portal_type)s
 
 ]]></string> </value>
         </item>
diff --git a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/5_stopped_transaction_list.xml b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/5_stopped_transaction_list.xml
index 443bde51b2..91c19a8c76 100644
--- a/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/5_stopped_transaction_list.xml
+++ b/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/worklists/5_stopped_transaction_list.xml
@@ -21,7 +21,7 @@
             <key> <string>actbox_url</string> </key>
             <value> <string encoding="cdata"><![CDATA[
 
-accounting_module/view?reset:int=1&local_roles=Assignor&simulation_state=stopped
+accounting_module/view?reset:int=1&local_roles=Assignor&simulation_state=stopped&portal_type=%(portal_type)s
 
 ]]></string> </value>
         </item>
diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision
index 035d0f0c1d..ab9f9df04a 100644
--- a/bt5/erp5_accounting/bt/revision
+++ b/bt5/erp5_accounting/bt/revision
@@ -1 +1 @@
-822
\ No newline at end of file
+824
\ No newline at end of file
-- 
2.30.9