Commit 9719feb
committed
[FIX] hr_recruitment: prevent error on changing stage of an applicant
An error occurs when a user quickly creates a template for a stage, bypassing
the validation of the `Applies to` field. As a result, an error is triggered
when the user selects a stage that uses that template.
**Steps to reproduce:**
* Install `hr_recruitment`
* hr_recruitment>Configuration>Stages>stage named `New`>Quick Create a mail
template with random name and save.
* Applications>All Applications>New application>Set stage to `New`
`KeyError:False`
**Solution:**
* Disable quick create as to prevent creating mail templates with empty
model ids.
**Sentry-6675399135**
closes odoo#218921
X-original-commit: 9bcb3ef
Signed-off-by: Bertrand Dossogne (bedo) <bedo@odoo.com>
Signed-off-by: Anshik Gopalbhai Brahmbhatt (agbr) <agbr@odoo.com>1 parent f6e9034 commit 9719feb
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments