summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2019-10-28 14:59:27 +0000
committerRaphael Collet <rco@odoo.com>2020-08-20 13:39:04 +0000
commit3e91fa1dbf9056f1557ff7a747ba3407e851b18e (patch)
tree83026623a533cedb334a35c0b128b7bede175622 /doc/reference/javascript_reference.rst
parent38b7462dcf7541bbcb51ac75cc1f7b6715f13ace (diff)
[FIX] core: first onchange on new one2many line
Consider models `M` and `L`, with a one2many field `M.l_ids` with inverse `L.m_id`. Consider also a computed field `L.foo` that depends on `L.m_id`. The field `L.foo` is not computed correctly by `onchange` on a new line in the form view of `M`: its value is forced to `False` because it has no default, and is not recomputed by `onchange` since the field `L.m_id` is never triggered an `onchange`. Modify the method `onchange` to not force fields without a default to `False`, and return all fields.
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions