Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openerp-web/6.1-opw-572496-msh into lp:openerp-web/6.1.
Requested reviews:
OpenERP R&D Web Team (openerp-dev-web)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-572496-msh/+merge/96321
Hello,
Fixed the issue of widget='statusbar' in listview field which shows technical
name in listview.
Demo :- set widget='statusbar' to any selection field in editable listview, the
widget statusbar will be properly shown but in listview it will show technical
name of the selection field.
To fix it treated a widget='statusbar' as a selection field, so changed the
code in format_value.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-572496-msh/+merge/96321
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-572496-msh.
=== modified file 'addons/web/static/src/js/formats.js'
--- addons/web/static/src/js/formats.js 2012-03-07 09:57:00 +0000
+++ addons/web/static/src/js/formats.js 2012-03-07 10:52:19 +0000
@@ -148,7 +148,7 @@
if (typeof(value) == "string")
value = openerp.web.auto_str_to_date(value);
return value.toString(normalize_format(l10n.time_format));
- case 'selection':
+ case 'selection': case 'statusbar':
// Each choice is [value, label]
if(_.isArray(value)) {
value = value[0]
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp