Add domain to act_to of request because active_test is in the context for
issue945
This commit is contained in:
1 parent
55f67eb90f
commit
2f2053c8d0
1 file changed
+5
-4
@@ -34,10 +34,11 @@ class Request(ModelSQL, ModelView):
|
||||
act_from = fields.Many2One('res.user', 'From', required=True,
|
||||
readonly=True)
|
||||
act_to = fields.Many2One('res.user', 'To', required=True,
|
||||
states={
|
||||
'readonly': "(state in ('waiting', 'closed')) or " \
|
||||
"(state == 'chatting' and act_from != _user)",
|
||||
})
|
||||
domain=[('active', '=', True)],
|
||||
states={
|
||||
'readonly': "(state in ('waiting', 'closed')) or " \
|
||||
"(state == 'chatting' and act_from != _user)",
|
||||
})
|
||||
body = fields.Text('Body', states={
|
||||
'readonly': "(state in ('waiting', 'closed')) or " \
|
||||
"(state == 'chatting' and act_from != _user)",
|
||||
|
||||
Reference in new issue
Block a user