diff options
| author | Denis Ledoux <dle@openerp.com> | 2014-02-18 17:21:25 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@openerp.com> | 2014-02-18 17:21:25 +0100 |
| commit | c7b4f44b22f4d9ad91c7ea2547e0757dc70bf3b0 (patch) | |
| tree | 57f8860e03d5240b12557ab740b1b61473b4e125 /addons/web | |
| parent | 1c4f859f1f71ddb85bffce32beea76d4df25256f (diff) | |
[FIX] web: fix handling of manyone with selection widget
Following the remove of widget selection handling in ir_ui_view of revision 4854.4.298 revid:al@openerp.com-20140121112759-zavwqdyv8kdq4oys
bzr revid: dle@openerp.com-20140218162125-bwse328ybq9d6c2v
Diffstat (limited to 'addons/web')
| -rw-r--r-- | addons/web/static/src/js/formats.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/formats.js b/addons/web/static/src/js/formats.js index 2f6bbcebc4f..3c32dbe0426 100644 --- a/addons/web/static/src/js/formats.js +++ b/addons/web/static/src/js/formats.js @@ -205,7 +205,7 @@ instance.web.format_value = function (value, descriptor, value_if_empty) { case 'selection': case 'statusbar': // Each choice is [value, label] if(_.isArray(value)) { - value = value[0]; + return value[1]; } var result = _(descriptor.selection).detect(function (choice) { return choice[0] === value; |
