Hi everybody
To resolve the problem of filtring values that are function fields of type one2many
I create this syntax :
'user_ids': fields.function(_get_marche_users, string='Chefs', type='one2many', readonly=True, relation='res.users', multi='marche_users', store=True)
but when I update the my module I get this error :
...
File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 167, in load_module_graph
init_module_models(cr, package.name, models)
File "/usr/lib/pymodules/python2.7/openerp/modules/module.py", line 374, in init_module_models
result = obj._auto_init(cr, {'module': module_name})
File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 3156, in _auto_init
cr.execute('ALTER TABLE "%s" ADD COLUMN "%s" %s' % (self._table, k, get_pg_type(f)[1]))
TypeError: 'NoneType' object has no attribute '__getitem_
A help please