diff options
| author | Martin Geubelle <mge@odoo.com> | 2015-06-29 16:19:52 +0200 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2015-06-29 16:20:03 +0200 |
| commit | 20dcea3be30497b4de1ea1bfe2a25f9a2ea8f14e (patch) | |
| tree | de26fd78b3fc21f4ab193f2fa69a3281401d1132 | |
| parent | 589f1efd5d16f62e5a417ab56752bed7d57b8377 (diff) | |
[FIX] hr_gamification: user_id not required
Revert the modification from commit 8ae67f6a5412ccde126bf8c85849f33f387df198 ; 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.
| -rw-r--r-- | addons/hr_gamification/wizard/grant_badge.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_gamification/wizard/grant_badge.py b/addons/hr_gamification/wizard/grant_badge.py index e6247a1cd8c..b4ab7abec8a 100644 --- a/addons/hr_gamification/wizard/grant_badge.py +++ b/addons/hr_gamification/wizard/grant_badge.py @@ -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): |
