Fix sign in stock computation
bzr revid: ced-79106cf7238097c544387abbde72107cbff2bac2
This commit is contained in:
parent
72e77f09fc
commit
1de422b209
|
@ -172,7 +172,7 @@ class stock_location(osv.osv):
|
|||
if 'out' in what:
|
||||
# all moves from a location in the set to a location out of the set
|
||||
cr.execute(
|
||||
'select -sum(product_qty), product_id, product_uom '\
|
||||
'select sum(product_qty), product_id, product_uom '\
|
||||
'from stock_move '\
|
||||
'where location_id in ('+location_ids_str+') '\
|
||||
'and location_dest_id not in ('+location_ids_str+') '\
|
||||
|
|
Loading…
Reference in New Issue