diff options
| author | Arnaud Baes <arb@odoo.com> | 2020-07-28 13:44:38 +0000 |
|---|---|---|
| committer | Arnaud Baes <arb@odoo.com> | 2020-07-29 14:01:42 +0000 |
| commit | e106c6af7f5a9daaf94cefb15c09dac186696e22 (patch) | |
| tree | 34a312e42c79abd9480cb578233baa1b3976a3a2 /addons/mail/static/src/models/thread_cache | |
| parent | 8a6a4766d97df3b6b1d718bf12b8da242e532ed1 (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')
0 files changed, 0 insertions, 0 deletions
