I have inherited res.partner.category in my module. When I import (in the GTK 
client) a csv file of data, including the 'active' field, only rows with 
active=True are imported. I had to import without the 'active' column then 
update them by hand in the client.
Now when I try to export to xml using the base_module_recorder 'Export 
Customizations' option I get this traceback:

Exception in call: Traceback (most recent call last):
ERROR:web-services:[18]:   File "/usr/lib/openerp-server/wizard/__init__.py", 
line 82, in execute_cr
ERROR:web-services:[19]:     res['action'] = result_def['action'](self, cr, 
uid, data, context)
ERROR:web-services:[20]:   File 
"/usr/lib/openerp-server/addons/base_module_record/wizard/base_module_record_objects.py",
 line 89, in _record_objects
ERROR:web-services:[21]:     search_ids=obj_pool.search(cr,uid,search_condition)
ERROR:web-services:[22]:   File "/usr/lib/openerp-server/osv/orm.py", line 
3045, in search
ERROR:web-services:[23]:     cr.execute('select %s.id from ' % self._table + 
','.join(tables) +qu1+' order by '+order_by+limit_str+offset_str, qu2)
ERROR:web-services:[24]:   File "/usr/lib/openerp-server/sql_db.py", line 77, 
in wrapper
ERROR:web-services:[25]:     return f(self, *args, **kwargs)
ERROR:web-services:[26]:   File "/usr/lib/openerp-server/sql_db.py", line 122, 
in execute
ERROR:web-services:[27]:     res = self._obj.execute(query, params)
ERROR:web-services:[28]: ProgrammingError: operator does not exist: boolean = 
integer
ERROR:web-services:[29]: LINE 1: ...uit_category" where 
(citrus_fruit_category.active = 1) AND (...
ERROR:web-services:[30]:                                                        
      ^
ERROR:web-services:[31]: HINT:  No operator matches the given name and argument 
type(s). You might need to add explicit type casts.

This looks like a bug to me. Not only is it silently filtering my data for me, 
it's using the wrong data type to do so.
I want all the data not just the active records. How to I turn this behaviour 
off?

Martin




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=56269#56269

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to