summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/debug_manager.js
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2016-07-05 09:55:27 +0200
committerMartin Trigaux <mat@odoo.com>2016-07-05 10:28:34 +0200
commit64b0e67a3869df3ffd112c2bcbc40d69b3f03c35 (patch)
tree48f2956922bd1b63802aebb9284350ddfed19675 /addons/web/static/src/js/widgets/debug_manager.js
parent8914de8c5388a59a777766702be694fb50254469 (diff)
[FIX] hr_recruitment: wrong id on composer
When an applicant is moved from a stage to another, an email is sent to the applicant(s) if an email template is specified on the stage. The active_ids is correctly set in the compose context to be used by the send_mail method to send a message to all the applicants in the new stage. However, a potential active_id may be propagated from a previous action. This is the case when a user goes from a Job Position record to the list of applications and change the stage using the kanban view (active_id & active_ids is the id of the hr.job). The default_get method of mail.compose.message will use the active_id as the default value for the field res_id which is wrong as it is the id of another record). Forcing the value at False instead of ids[0] as it would not work in batch mode. The list of records is correctly used in send_mail anyway. Closes #12494
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
0 files changed, 0 insertions, 0 deletions