diff options
| author | Fabien Meghazi <fme@openerp.com> | 2012-01-25 12:16:28 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2012-01-25 12:16:28 +0100 |
| commit | 4ffe5f55451bb41b4baa51cf337e2cf99121624f (patch) | |
| tree | 4970f79749505bbd0f8f390620c85da34b2b2138 /addons/web/static/src/js/formats.js | |
| parent | 82b7eb4951b34f39174d07e93424ceeb7edb9b49 (diff) | |
[FIX] Special case id fields
lp bug: https://launchpad.net/bugs/919184 fixed
bzr revid: fme@openerp.com-20120125111628-vsz6mwptd7bm8hlm
Diffstat (limited to 'addons/web/static/src/js/formats.js')
| -rw-r--r-- | addons/web/static/src/js/formats.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/formats.js b/addons/web/static/src/js/formats.js index 7f220d0aa54..eb7d6c335ac 100644 --- a/addons/web/static/src/js/formats.js +++ b/addons/web/static/src/js/formats.js @@ -90,6 +90,8 @@ openerp.web.format_value = function (value, descriptor, value_if_empty) { } var l10n = _t.database.parameters; switch (descriptor.widget || descriptor.type) { + case 'id': + return value.toString(); case 'integer': return openerp.web.insert_thousand_seps( _.str.sprintf('%d', value)); |
