Commit 5c24f18
committed
[FIX] hr_gamification: solve runbot error about record assignment
Bug production steps: It shows an error in the runbot build
Bug cause: self.env['gamification.goal'].search returns goal ids in an array [ids], but assigning this array to directly employee.goals_ids is giving error because it is O2M field.
Bug solution: Assigning in the proper format ([(6, 0, goals.ids)]) instead of just assigning goals.ids.
task - 54730861 parent 291b26d commit 5c24f18
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments