Domain restriction doesn't work with selection widget
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KDE OpenObject Client |
New
|
Undecided
|
Unassigned |
Bug Description
yanked from openobject-
+++
many2one field with a 'widget="selection" attribute in the XML view
definition. Then any domain restriction won't be applied in neither of the two
following cases:
CASE 1
PY model definition:
'country_id': field.many2one(
'state_id': field.many2one(
domain=
XML view definition:
<field name="country_id" widget="selection" />
<field name="state_id" widget="selection" />
CASE 2
PY model definition:
'country_id': field.many2one(
'state_id': field.many2one(
XML view definition:
<field name="country_id" widget="selection" />
<field name="state_id" widget="selection"
domain=