← Back to team overview

openerp-india team mailing list archive

[Bug 988743] Re: Invalid lookup in ormcache()

 

The fix has landed in 6.1 at revision 4175 rev-id: odo@xxxxxxxxxxx-20120522162730-k9514eosjo8w0r1i.
It will be ported to trunk next time 6.1 is merged.

(It also revealed a cache invalidation bug in the decimal_precision
module, fixed in addons at rev.6807 rev-id:
odo@xxxxxxxxxxx-20120523085234-2q8z7f1naydnjgsz)

** Changed in: openobject-server
       Status: Confirmed => Fix Released

** Changed in: openobject-server
    Milestone: None => 6.1

-- 
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:
  Fix Released

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