selection parameter in many2one field doesn't work
Version 5.0.9
When trying to use the selection parameter on a field, the result is not filtered at all.
In the example mentioned below, all extensions are present when having to chose the extension and not only the one returned by the _sel_extension function
class asterisk_
def _sel_extension(
obj = self.pool.
ids = obj.search(cr, uid, [('type'
res = obj.read(cr, uid, ids, ['name','id'], context=context)
res = tuple([
return res
_name = "res.users"
_inherit = "res.users"
_columns = {
}
asterisk_user()
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Jay Vora (Serpent Consulting Services)
- Solved:
- Last query:
- Last reply:
This question was originally filed as bug #569364.