diff options
| author | Raphael Collet <rco@odoo.com> | 2019-04-11 13:34:50 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2019-04-11 14:55:50 +0000 |
| commit | db97bb7f1136dc3ebde9924b79364a698a63765d (patch) | |
| tree | 722c1fd32b084342eeb11f03672d62b149ad9539 /addons/hr_recruitment_survey | |
| parent | c7fe955daa08d2ba264f6e3f6b4b919cc7713aa1 (diff) | |
[FIX] *: stupid assignments on non-stored fields without inverse
Some tests had to be adapted because they relied on the buggy behavior:
this was particularly the case when they tried to write on readonly
related fields.
closes odoo/odoo#32460
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/hr_recruitment_survey')
| -rw-r--r-- | addons/hr_recruitment_survey/tests/test_recruitment_survey.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/addons/hr_recruitment_survey/tests/test_recruitment_survey.py b/addons/hr_recruitment_survey/tests/test_recruitment_survey.py index 45ceab0157d..f7a6ac20df3 100644 --- a/addons/hr_recruitment_survey/tests/test_recruitment_survey.py +++ b/addons/hr_recruitment_survey/tests/test_recruitment_survey.py @@ -14,11 +14,16 @@ class TestRecruitmentSurvey(common.SingleTransactionCase): cls.department_admins = cls.env['hr.department'].create({'name': 'Admins'}) cls.survey_sysadmin = cls.env['survey.survey'].create({'title': 'Questions for Sysadmin job offer'}) + cls.job = cls.env['hr.job'].create({ + 'name': 'Technical worker', + 'survey_id': cls.survey_sysadmin.id, + }) cls.job_sysadmin = cls.env['hr.applicant'].create({ 'name': 'Technical worker', 'department_id': cls.department_admins.id, - 'description': 'A nice Sys Admin job offer !'}) - cls.job_sysadmin.survey_id = cls.survey_sysadmin + 'description': 'A nice Sys Admin job offer !', + 'job_id': cls.job.id, + }) def test_start_survey(self): # We ensure that response is False because we don't know test order |
