Hi
how to add quantity in view tree of product for a specific location
I use this code
def _default_stock_location(self, cr, uid, context=None):
location_obj = self.pool.get('stock.location')
count = location_obj.search(cr, uid, [('company_id', '=', 'sousse1')], context=context)
for a in count:
record=location_obj.browse(cr, uid, a, context=context).stock_real
return record
_colmuns= {'sousse1' : fields.float('Sousse1'), }
_defaults={'sousse1":_default_stock_location}
Thanks