selection parameter in many2one field doesn't work
This bug report was converted into a question: question #108611: selection parameter in many2one field doesn't work.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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()
Changed in openobject-server: | |
status: | New → Invalid |
milestone: | none → 5.0.10 |