diff options
| author | William Beltrán <wbeltran@infostudio.com.ec> | 2012-05-15 08:24:06 -0500 |
|---|---|---|
| committer | William Beltrán <wbeltran@infostudio.com.ec> | 2012-05-15 08:24:06 -0500 |
| commit | 9e5290e997afff6a9bbfa0096d7b0cd26ec3e102 (patch) | |
| tree | 769017bf4661f45b552eaea332c841a791d02558 /addons/web/static/src | |
| parent | dfba540117d002b527b69dcd0a4ab33e3ed9bb49 (diff) | |
Changed the way of show the result in case of many2many and one2many fields according to xmo@openerp.com tips.
bzr revid: wbeltran@infostudio.com.ec-20120515132406-950ekkzyi3nq7jmp
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/formats.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/src/js/formats.js b/addons/web/static/src/js/formats.js index 5bb5e461fce..93126d7b8c9 100644 --- a/addons/web/static/src/js/formats.js +++ b/addons/web/static/src/js/formats.js @@ -135,9 +135,9 @@ instance.web.format_value = function (value, descriptor, value_if_empty) { // name_get value format return value[1]; case 'one2many': - // this is to show count of ids related in this o2m relation instead the list of them for example will show this:(5) instead of this 1,2,5,8,76 - count_ids = '('+value.length.toString()+')' - return count_ids; + return _.str.sprintf(_t("(%d records)"), value.length); + case 'many2many': + return _.str.sprintf(_t("(%d records)"), value.length); case 'datetime': if (typeof(value) == "string") value = instance.web.auto_str_to_date(value); |
