summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-01-08 15:11:15 +0000
committerThibault Delavallée <tde@odoo.com>2020-01-08 18:13:22 +0000
commit8c18433605e5ca384a5491435068bb25624b406c (patch)
tree65e5fa6603f6c7bcc8729cc0427efaac85199fd7 /addons/web/static/src/js/fields/basic_fields.js
parent2bbae8e70eaac92550d27deb4bc5c02ee8cbbd35 (diff)
[FIX] event: correctly copy information from event type mail schedulers
Currently an onchange on event type copy the mail schedulers information from event type to the event. In order to ease inheritance, some white listed attributes are directly copied using direct getter (line[attribute], see code for clarity). However mail and sms templates are many2one fields and the id should be copied, not the browse record. There is no issue when the onchange is trigered from interface because a mapping is done. However when calling the onchange in code there is a crash as the record is directly given to write. closes odoo/odoo#42990 X-original-commit: 09c6747ea2de108cf512091b7837a71d4ea4662a Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions