Skip to content

Conversation

@Faruk372742
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Jan 9, 2026

This PR targets the un-managed branch odoo-dev/odoo:master-hr-onboarding-faavc, it needs to be retargeted before it can be merged.

Copy link

@arpi-odoo arpi-odoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commit message and PR description is not correct

Comment on lines 29 to 32
# employee.goal_ids = self.env['gamification.goal'].search([
# ('user_id', '=', employee.user_id.id),
# ('challenge_id.challenge_category', '=', 'hr'),
# ])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the comment here ?

@Faruk372742 Faruk372742 force-pushed the master-hr-onboarding-appraisal_goals_make_m2o_v2-faavc branch from 52e3ca1 to 25135f2 Compare January 12, 2026 08:55
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 - 5473086
@Faruk372742 Faruk372742 force-pushed the master-hr-onboarding-appraisal_goals_make_m2o_v2-faavc branch from 25135f2 to 5c24f18 Compare January 12, 2026 12:23
@Faruk372742 Faruk372742 changed the title [IMP] empty! [FIX] hr_gamification: solve runbot error about record assignment Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants