summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2017-05-19 11:01:06 +0200
committerGéry Debongnie <ged@odoo.com>2017-05-19 12:14:49 +0200
commit92409cdfe5812c72f03ac96fab955db865f390c3 (patch)
treed25426bed49f891b63133169554c99aeb64e7793 /addons/web/static/src/js/fields/basic_fields.js
parent8af3d452f414135bd897026859958a9660bb5aa4 (diff)
[FIX] web: apply onchanges for sub fields for new records
Before this commit, when creating a new record, we only looked at the main fields to determine if a call to onchange was needed. This was not enough, since sub fields (fields in a one2many for example) can have an onchange. This was an issue only for new records with onchanges in sub fields, but no onchange on main fields. For example, the merge contact wizard. To solve this issue, we had to propagate the current view type from the field to the basic model, because otherwise, the main viewtype was used to compute the onchangeSpec, and that is not always correct.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions