projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef18962
)
[FIX]stock: wizard stock change qty, object_reference return an integer and not a...
author
Denis Ledoux
<dle@openerp.com>
Thu, 1 Aug 2013 14:21:19 +0000
(16:21 +0200)
committer
Denis Ledoux
<dle@openerp.com>
Thu, 1 Aug 2013 14:21:19 +0000
(16:21 +0200)
bzr revid: dle@openerp.com-
20130801142119
-3kt689udw6j9zofz
addons/stock/wizard/stock_change_product_qty.py
patch
|
blob
|
history
diff --git
a/addons/stock/wizard/stock_change_product_qty.py
b/addons/stock/wizard/stock_change_product_qty.py
index
a5f700b
..
01ed6f2
100644
(file)
--- a/
addons/stock/wizard/stock_change_product_qty.py
+++ b/
addons/stock/wizard/stock_change_product_qty.py
@@
-67,7
+67,7
@@
class stock_change_product_qty(osv.osv_memory):
self.pool.get('stock.location').check_access_rule(cr, uid, [location_id], 'read', context=context)
except (orm.except_orm, ValueError):
location_id = False
- res.update({'location_id': location_id and location_id.id or False})
+ res.update({'location_id': location_id})
return res
def change_product_qty(self, cr, uid, ids, context=None):