From f24a436f04510097d5fa15330fdc91417401ced9 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 15 Jan 2004 16:11:42 +0000 Subject: [PATCH] add the batch_mode parameter git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@202 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../skins/coramy_trade/sales_order_apply_condition.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/product/Coramy/skins/coramy_trade/sales_order_apply_condition.py b/product/Coramy/skins/coramy_trade/sales_order_apply_condition.py index f8507ad072..5a07b74c64 100755 --- a/product/Coramy/skins/coramy_trade/sales_order_apply_condition.py +++ b/product/Coramy/skins/coramy_trade/sales_order_apply_condition.py @@ -4,7 +4,7 @@ ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath -##parameters=form_id +##parameters=form_id,batch_mode=0 ##title= ## # appelé sur une commande, ce script recherche une condition de vente @@ -185,4 +185,7 @@ else : # on a une condition applicable redirect_url = '%s/%s?%s' % ( context.absolute_url(), form_id , 'portal_status_message=Commande+mise+a+jour.') -context.REQUEST[ 'RESPONSE' ].redirect( redirect_url ) +if batch_mode: + return None +else: + context.REQUEST[ 'RESPONSE' ].redirect( redirect_url ) -- 2.30.9