[FIX] hr_gamification: user_id not required
Revert the modification from commit 8ae67f6a54
; it appears that the test of required field is done before the computation of the related field and that leads to a Validation Error.
As the field employee_id is already required and the user_id is related to this field, the attribute required is redundant and unecessary.
This commit is contained in:
parent
589f1efd5d
commit
20dcea3be3
|
@ -30,7 +30,7 @@ class hr_grant_badge_wizard(osv.TransientModel):
|
|||
'employee_id': fields.many2one("hr.employee", string='Employee', required=True),
|
||||
'user_id': fields.related("employee_id", "user_id",
|
||||
type="many2one", relation="res.users",
|
||||
store=True, string='User', required=True)
|
||||
store=True, string='User')
|
||||
}
|
||||
|
||||
def action_grant_badge(self, cr, uid, ids, context=None):
|
||||
|
|
Loading…
Reference in New Issue