## Script (Python) "launchUpdateAssortimentPriceOnSalesOrder"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
request = context.REQUEST
item_list = context.zGetHouvSalesOrderList()
cr = '\n'
tab = '\t'

for item_item in item_list :
  item = item_item.getObject()
  if item is not None:
    item.activate().SalesOrder_updateAssortimentPrice()

#request.RESPONSE.setHeader('Content-Type','application/text')

return 'lancé'+str(len(item_list))
