[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:
Martin Geubelle 2015-06-29 16:19:52 +02:00
parent 589f1efd5d
commit 20dcea3be3
1 changed files with 1 additions and 1 deletions

View File

@ -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):