Invalid lookup in ormcache()
Bug #988743 reported by
Thibaut DIRLIK (Logica)
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP's Framework R&D |
Bug Description
Hi,
In ormcache(), you check if the data is present using the "key" variable, and you define it using "args" [1], which is not the same. The first one is based on self.skiparg, whereas the second is not.
So, for decorators which set the "skiparg" arguments, if it is different of 2, the cache won't work. The fix is simply to set d[key] inseatd of d[args].
[1] : http://
Related branches
summary: |
- Invalid lookoop in ormcache() + Invalid lookup in ormcache() |
Changed in openobject-server: | |
status: | Incomplete → New |
To post a comment you must log in.
Hello Thibaut DIRLIK ,
I have checked this issue at my end. in ormcache() in lookup() method , Line 41
r = d[key] if it cause KeyError then it handle by except KeyError:
line 46 " value = d[args] = self.method(self2, cr, *args)".
but I did not face any problem regarding this issue.
So would you please elaborate more regarding this issue.
Thanks and waiting for reply!