diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-12-10 14:46:30 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-12-10 14:46:30 +0000 |
| commit | 905eed0de17cdfee070bb7ca6dc0e444a1dceece (patch) | |
| tree | cb06bb73bc272ba019f4f34406e177452d56e70b /addons | |
| parent | 1559750620385971721d196a7c51f504d3018685 (diff) | |
[FIX] web: introduce format for `many2one_reference` for form view
The format of `many2one_reference` was not introduced when the new field type
was created, which leads to empty values when the web client is trying to
display the value of such fields in form views.
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.
This was fixed in list views in commit d0c852f50e71bc4c9c2a08230f515fec6909b725
and the current commit fixes it for form views.
opw-2127010
closes #38009
closes odoo/odoo#41666
X-original-commit: c37a16c9dfd09038925034b90ab49e1ab674e714
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/web/static/src/js/fields/field_registry.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/field_registry.js b/addons/web/static/src/js/fields/field_registry.js index 9adb578639f..b121b3e04f7 100644 --- a/addons/web/static/src/js/fields/field_registry.js +++ b/addons/web/static/src/js/fields/field_registry.js @@ -61,7 +61,8 @@ registry .add('toggle_button', basic_fields.FieldToggleBoolean) .add('dashboard_graph', basic_fields.JournalDashboardGraph) .add('ace', basic_fields.AceEditor) - .add('color', basic_fields.FieldColor); + .add('color', basic_fields.FieldColor) + .add('many2one_reference', basic_fields.FieldInteger); // Relational fields registry |
