diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-06-02 11:03:40 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-06-07 08:08:49 +0200 |
| commit | 98142f731d38aecf87d7e7900e6eeff8c047a9eb (patch) | |
| tree | e039be4c032564936fd9b28525ea606db4cb15ee /addons/web/static/tests/fields/relational_fields_tests.js | |
| parent | 6f3eada2c3a5c0a21c9b3fef3bef3f655b0892e4 (diff) | |
[FIX] web: BasicModel: default_get: fetch x2manys of x2manys
Suppose that a default_get returns the value [[6, 0, [1]] for an
x2many field (i.e. put id 1 in the relation). A read is performed
to fetch record of the comodel whose id is 1. Suppose that there
is another x2many field of the comodel. This x2many has to be
fetched (if not empty), and processed by the BasicModel (i.e. a
dataPoint must be created for it) as well.
Before this rev., the second x2many wasn't fetched nor processed,
and it produced a traceback for example in Expenses app, when
clicking on 'Submit to manager' from an expense form view.
Diffstat (limited to 'addons/web/static/tests/fields/relational_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
