projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c4f859
)
[FIX] web: fix handling of manyone with selection widget
author
Denis Ledoux
<dle@openerp.com>
Tue, 18 Feb 2014 16:21:25 +0000
(17:21 +0100)
committer
Denis Ledoux
<dle@openerp.com>
Tue, 18 Feb 2014 16:21:25 +0000
(17:21 +0100)
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
addons/web/static/src/js/formats.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/formats.js
b/addons/web/static/src/js/formats.js
index
2f6bbce
..
3c32dbe
100644
(file)
--- 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;