Merge lp:~openerp-dev/openobject-server/6.0-opw-51206-vro into lp:openobject-server/6.0
Status: | Merged |
---|---|
Merge reported by: | Olivier Laurent (Open ERP) |
Merged at revision: | not available |
Proposed branch: | lp:~openerp-dev/openobject-server/6.0-opw-51206-vro |
Merge into: | lp:openobject-server/6.0 |
Diff against target: |
15 lines (+4/-1) 1 file modified
bin/osv/orm.py (+4/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/6.0-opw-51206-vro |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Serpent Consulting Services (community) | Needs Fixing | ||
Vinay Rana (OpenERP) (community) | Approve | ||
Rifakat Husen (OpenERP) (community) | Approve | ||
Review via email: mp+85792@code.launchpad.net |
Description of the change
Hello,
Import of datas was recently improved to allow import of inactive records (revision: 3547). But this presumed that the 'active' field is present in the object. Hence, import results in the following traceback for objects without the field 'active':
Environment Information :
System : Windows-
OS Name : nt
Operating System Release : XP
Operating System Version : 5.1.2600
Operating System Architecture : 32bit
Operating System Locale : nl_NL.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
return super(recording
File "/home/
res = fn(db, uid, *params)
File "/home/
res = my_fct(db, uid, model, method, *args)
File "/home/
return fct_src(db, uid_orig, model, method, *args)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
process_
File "/home/
res = _get_id(relation, line[i], current_module, mode)
File "/home/
ids = obj_model.
File "/home/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/
query = self._where_
File "/home/
where_clause, where_params = e.to_sql()
File "/home/
q, p = self.__
File "/home/
instr = ','.join(
KeyError: 'active'
This fix resolves the error.
Thanks
Really good catch, Works correctly.
Thanks.