Require a user application
There is no empty option so it is in fact required so it is better that the UI manage it.
This commit is contained in:
1 parent
cea1fcad74
commit
85a9575a95
1 file changed
+1
-1
@@ -1113,7 +1113,7 @@ class UserApplication(Workflow, ModelSQL, ModelView):
|
||||
|
||||
key = fields.Char("Key", required=True, strip=False)
|
||||
user = fields.Many2One('res.user', "User")
|
||||
application = fields.Selection([], "Application")
|
||||
application = fields.Selection([], "Application", required=True)
|
||||
state = fields.Selection([
|
||||
('requested', "Requested"),
|
||||
('validated', "Validated"),
|
||||
|
||||
Reference in new issue
Block a user