[FIX] web: introduce parser for many2one_reference

Follow-up of d0c852f

The parser of `many2one_reference` was not introduced when the new field
type was created and then later when the formatter was added, which
leads to errors when the web client is trying to set the value of such
fields.

Since the value of this field is an ID, it is parsed as an integer.

closes odoo/odoo#47330

X-original-commit: db1e16bc041e1d892fd1f3ac5b694e12496a32f9
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
This commit is contained in:
Damien Bouvy
2020-03-10 18:41:00 +00:00
parent abef168389
commit 6bcf02efeb
@@ -691,6 +691,7 @@ return {
integer: parseInteger,
many2many: _.identity, // todo
many2one: parseMany2one,
many2one_reference: parseInteger,
monetary: parseMonetary,
one2many: _.identity,
percentage: parsePercentage,