xmlrpc_config = proteus.config.set_xmlrpc(url)
User = Model.get('res.user')
xmlrpc_config.context['language'] = 'de_de'
xmlrpc_config._context = User.get_preferences(True, config.context)
xmlrpc_config._context['stock_date_end'] = datetime.datetime.today()
Location = Model.get('stock.location')
Product = Model.get('product.product')
(location,) = Location.find(['name', '=', 'LOCATIONNAME'])
stock_by_location_wizzard = Wizard('stock.products_by_locations', [location])
stock_by_location_wizzard.execute("open")
with config.set_context({'locations': [location.id], 'stock_date_end': today}):
products_with_stock = Product.find([('quantity', '>', 0)])
for product in products:
print product.quantity