summaryrefslogtreecommitdiff
path: root/addons/web
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2019-09-23 12:40:34 +0000
committerSébastien Theys <seb@odoo.com>2019-09-23 20:55:39 +0000
commitd0c852f50e71bc4c9c2a08230f515fec6909b725 (patch)
treec3cd16b138b3159c736ccdcead0ef729bc847153 /addons/web
parent5d97c47e544742b134a0737628946adaedd467e4 (diff)
[FIX] web: introduce format for `many2one_reference`
The format of `many2one_reference` was not introduced when the new field type was created, which leads to errors when the web client is trying to display the value of such fields. Since the value of this field is an ID, it is decided to display it like an integer, which is consistent with previous behavior: the fields that are now `many2one_reference` are still stored as integer and they were already displayed as integer before. closes odoo/odoo#37216 Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web')
-rw-r--r--addons/web/static/src/js/fields/field_utils.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/fields/field_utils.js b/addons/web/static/src/js/fields/field_utils.js
index e6bde45e1f5..f653ded7181 100644
--- a/addons/web/static/src/js/fields/field_utils.js
+++ b/addons/web/static/src/js/fields/field_utils.js
@@ -662,6 +662,7 @@ return {
integer: formatInteger,
many2many: formatX2Many,
many2one: formatMany2one,
+ many2one_reference: formatInteger,
monetary: formatMonetary,
one2many: formatX2Many,
percentage: formatPercentage,