Commit f24a436f authored by Romain Courteaud's avatar Romain Courteaud

add the batch_mode parameter


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@202 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f79c9f0b
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
##bind namespace= ##bind namespace=
##bind script=script ##bind script=script
##bind subpath=traverse_subpath ##bind subpath=traverse_subpath
##parameters=form_id ##parameters=form_id,batch_mode=0
##title= ##title=
## ##
# appelé sur une commande, ce script recherche une condition de vente # appelé sur une commande, ce script recherche une condition de vente
...@@ -185,4 +185,7 @@ else : # on a une condition applicable ...@@ -185,4 +185,7 @@ else : # on a une condition applicable
redirect_url = '%s/%s?%s' % ( context.absolute_url(), form_id redirect_url = '%s/%s?%s' % ( context.absolute_url(), form_id
, 'portal_status_message=Commande+mise+a+jour.') , '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 )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment