passing int to write method of stock.move gives "Field '0' does not exist in object 'browse_record(stock.move,..."
Bug #740202 reported by
Lorenzo Battistini
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 2 |
Bug Description
- Call the write method of stock.move passing ids as INT (instead of LIST) with user != admin
- Get
File "server/
for move in self.browse(cr, uid, ids, context=context):
File "server/
name, self))
KeyError: "Field '0' does not exist in object 'browse_
Suggested FIX:
After line 1614 ( http://
if isinstance(ids, (int, long)):
ids = [ids]
Related branches
lp://qastaging/~openerp-dev/openobject-addons/trunk-bug-740202-ron
- Rucha (Open ERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 12 lines (+2/-0)1 file modifiedstock/stock.py (+2/-0)
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hello,
This situation will never happen in system until and unless we will create it manually.
So we will not consider it as a bug.
Thanks.