Add domain to act_to of request because active_test is in the context for

issue945
This commit is contained in:
Cédric Krier committed 2009-04-07 19:22:11 +02:00
1 parent 55f67eb90f
commit 2f2053c8d0
1 file changed
+5 -4
+5 -4
View File
@@ -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)",