openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #10858
[Bug 988743] Re: Invalid lookup in ormcache()
Hello Thibaut ,
I have checked this again but as your comment #2 I am not getting any problem
regarding this issue.As per line 46 value = d[args] = self.method(self2, cr, *args).
set result value , d[args] by self.method(self2, cr, *args).
means if a = b = c then it set a =c and b = c , So d[args] does not change return value.
So would you please provide proper test case to reproduce this issue.
Or provide a video related to bug.
Thanks and waiting reply!
** Changed in: openobject-server
Status: New => Incomplete
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/988743
Title:
Invalid lookup in ormcache()
Status in OpenERP Server:
Incomplete
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://bazaar.launchpad.net/~openerp/openobject-
server/trunk/view/head:/openerp/tools/cache.py#L46
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/988743/+subscriptions
References