summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/models/thread_cache/thread_cache.js
diff options
context:
space:
mode:
authorArnaud Baes <arb@odoo.com>2020-07-28 13:44:38 +0000
committerArnaud Baes <arb@odoo.com>2020-07-29 14:01:42 +0000
commite106c6af7f5a9daaf94cefb15c09dac186696e22 (patch)
tree34a312e42c79abd9480cb578233baa1b3976a3a2 /addons/mail/static/src/models/thread_cache/thread_cache.js
parent8a6a4766d97df3b6b1d718bf12b8da242e532ed1 (diff)
[FIX] hr_recruitment: OdooBot assigned as Applicant Responsible
When someone is applying to any job position from the website ( via the `/website_form/` route ), the `hr.applicant` record is created by OdooBot, and in such case, the `_compute_user` method is never triggered as the field `user_id` (Responsible) already has self.env.uid as default value. This fix will in priority try to set a proper Responsible (if any is defined on the job position) via `_compute_user` and then assign `self.env.uid` if none is found. closes odoo/odoo#55146 X-original-commit: e9292cb424ec04823dbce964ad4532edc20190c6 Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache/thread_cache.js')
0 files changed, 0 insertions, 0 deletions