domain restriction in osv_memory models
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi
I have a return statement of the form:
return {
'type': 'ir.actions.
}
where mrp.component is an osv_memory object
changing the domain restriction to something meaningful (e.g. [("parent_id", "=", None)] gives an error as it uses the search method of the orm class instead of orm_memory
(of course, I've overwritten the orm_memory::search method as it would always return all the keys)
[2011-08-04 19:33:28,
Traceback (most recent call last):
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/
return super(mrp_
File "/home/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/
val = eval('data[
File "/home/
return eval(test_
File "", line 1, in <module>
KeyError: 'parent_id'
I'm using the 6.0 branch of openobject-server
Hello,
The osv_memory will soon be disappearing from the server, it will be replaced by osv with just some boolean information to know that it should be cleaned from the db from time to time so these will work as normal osv but with short life span.
Thanks