diff --git a/trytond/res/request.py b/trytond/res/request.py index 446811d9c1..ee0915632f 100644 --- a/trytond/res/request.py +++ b/trytond/res/request.py @@ -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)",