diff options
| author | Martin Geubelle <mge@odoo.com> | 2017-08-17 18:37:25 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2017-08-18 12:59:11 +0200 |
| commit | 4efa4e9d9420d0283c8d7b9683d13d3cd0907400 (patch) | |
| tree | a51fa7f7a2fd0206ce32e02e79ac266840fb08f3 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 7fa39d6e049ae88d7ec1edd276b13f91b9603eb6 (diff) | |
[FIX] web: BasicModel: default_get: correctly fetch m2o inside o2m
In general (e.g. read, search_read), values for many2one fields are pairs
[id, display_name]. The default_get is an exception, it only returns the id,
so we need to manually perform a name_get afterwards. In the case of
list views, those name_get RPCs are batched.
Before this rev., the code in charge of it didn't handle the case where the
many2one value was false, so it crashed when it happened.
This rev. deals with this use case and a test case has been added.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
