[FIX] Priority on fields.function with store dictionary made working.

lp bug: https://launchpad.net/bugs/462506 fixed

bzr revid: jvo@tinyerp.com-20091117072234-fjb7gcupgnw4q22b
This commit is contained in:
Jay (Open ERP) 2009-11-17 12:52:34 +05:30
parent 32c483bb6e
commit cd74873235
1 changed files with 2 additions and 1 deletions

View File

@ -1997,7 +1997,8 @@ class orm(orm_template):
ok = True
for x,y,z,e,f in self.pool._store_function[object]:
if (x==self._name) and (y==store_field) and (e==fields2):
ok = False
if f==order:
ok = False
if ok:
self.pool._store_function[object].append( (self._name, store_field, fnct, fields2, order))
self.pool._store_function[object].sort(lambda x,y: cmp(x[4],y[4]))