Rifakat (OpenERP) has proposed merging
lp:~openerp-dev/openobject-server/6.0-opw-17104-rha into
lp:openobject-server/6.0.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/6.0-opw-17104-rha/+merge/72993
Hello,
While building up the domain in _where_calc() of class orm on a call of search
method, 'active' field is only checked in self._columns but not in
self._inherit_fields.
This fix solves the problem and adds domain correctly.
Thanks,
Rifakat
--
https://code.launchpad.net/~openerp-dev/openobject-server/6.0-opw-17104-rha/+merge/72993
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-server/6.0-opw-17104-rha.
=== modified file 'bin/osv/orm.py'
--- bin/osv/orm.py 2011-06-20 11:12:35 +0000
+++ bin/osv/orm.py 2011-08-26 05:37:23 +0000
@@ -3850,7 +3850,7 @@
domain = domain[:]
# if the object has a field named 'active', filter out all inactive
# records unless they were explicitely asked for
- if 'active' in self._columns and (active_test and context.get('active_test', True)):
+ if 'active' in (self._columns.keys() + self._inherit_fields.keys()) and (active_test and context.get('active_test', True)):
if domain:
active_in_args = False
for a in domain:
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp