From d729640cd07e3f98a819d86f836515b8f282236d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 22 Aug 2008 16:34:49 +0000 Subject: [PATCH] Fix Payment Transaction -> Invoice jump git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23126 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Payment%20Transaction/related_invoice.xml | 26 +++++-------------- bt5/erp5_accounting/bt/revision | 2 +- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Payment%20Transaction/related_invoice.xml b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Payment%20Transaction/related_invoice.xml index 923e305839..e9eb7e92db 100644 --- a/bt5/erp5_accounting/ActionTemplateItem/portal_types/Payment%20Transaction/related_invoice.xml +++ b/bt5/erp5_accounting/ActionTemplateItem/portal_types/Payment%20Transaction/related_invoice.xml @@ -27,9 +27,7 @@ </item> <item> <key> <string>condition</string> </key> - <value> - <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> - </value> + <value> <string></string> </value> </item> <item> <key> <string>description</string> </key> @@ -77,23 +75,11 @@ <dictionary> <item> <key> <string>text</string> </key> - <value> <string>python:"%s/%s/view" % (object.getPortalObject().getPath(), object.getCausality())</string> </value> - </item> - </dictionary> - </pickle> - </record> - <record id="3" aka="AAAAAAAAAAM="> - <pickle> - <tuple> - <global name="Expression" module="Products.CMFCore.Expression"/> - <tuple/> - </tuple> - </pickle> - <pickle> - <dictionary> - <item> - <key> <string>text</string> </key> - <value> <string>python:object.getCausalityValue() is not None</string> </value> + <value> <string encoding="cdata"><![CDATA[ + +string:${object_url}/Base_jumpToRelatedObject?base_category=causality&portal_type:list=Purchase+Invoice+Transaction&portal_type:list=Sale+Invoice+Transaction&portal_type:list=Accounting+Transaction&related:int=0 + +]]></string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index fea826bf85..ddc27b0c1a 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -738 \ No newline at end of file +739 \ No newline at end of file -- 2.30.9