diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-10-09 12:22:38 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-10-09 12:22:38 +0200 |
| commit | 9241f7ea63f441b5e75a7f694896360ddf0a3278 (patch) | |
| tree | e5ffd4652bf919d42fb2d05dc0c51b8bfb877311 /addons/web/static/src/js | |
| parent | b5cbb2827ec8fccd070d3edcf31e8a1098e4ffed (diff) | |
[FIX] web: allow strings as m2o values in domain selector
Since the new views, the field parsing for m2o returns an object with
id and display_name. If the given value to parse is a string, it is
supposed that this is an ID. This was breaking the domain selector
widget which should allow strings as name-strings of m2o values.
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/widgets/domain_selector.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/widgets/domain_selector.js b/addons/web/static/src/js/widgets/domain_selector.js index 74572e81b39..3844c87fece 100644 --- a/addons/web/static/src/js/widgets/domain_selector.js +++ b/addons/web/static/src/js/widgets/domain_selector.js @@ -805,7 +805,7 @@ var DomainLeaf = DomainNode.extend({ if (_.isBoolean(this.value)) { this.value = ""; } else if (_.isObject(this.value) && !_.isArray(this.value)) { // Can be object if parsed to x2x representation - this.value = this.value.id || ""; + this.value = this.value.id || value || ""; } } |
