diff options
| author | Raphael Collet <rco@odoo.com> | 2019-09-23 12:40:17 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-09-23 20:55:39 +0000 |
| commit | 50c7941fa67133a29c3a1032f799a1135950198c (patch) | |
| tree | 951a0fdc5da5a27852c7a7ed61fcc8ba4569f38c /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 97cee756cc226a49263c4f97b6d6b977659edf64 (diff) | |
[FIX] fields: set `model_field` on related `many2one_reference` fields
This fixes an issue when a Model A with a `many2one_reference` is inherited in
Model B with `_inherits`, and another Model C defines a `one2many` having as
inverse the inherited `many2one_reference` in Model B.
Without this commit, the value of `model_field` is `False` by default for the
field in B, which would lead to incorrect queries when building
`get_domain_list` for the `one2many`.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
