Impacted versions:
10.0

Steps to reproduce:
From Chrome Versión 59.0.3071.115 (Build oficial) (64 bits)
with lang  spanish Latin America es_419
Go to http://247698-10-0-f3ee58.runbot8.odoo.com/?db=247698-10-0-f3ee58-all

Current behavior:

```python
2017-07-20 16:21:02,024 10584 INFO 247698-10-0-f3ee58-all odoo.sql_db: bad query: INSERT INTO "ir_translation" ("id", "lang", "src", "name", "type", "value", "state", "res_id") VALUES(nextval('ir_translation_id_seq'), 'es_419', 'Visitor, Administrator', 'mail.channel,name', 'model', 'Visitor, Administrator', 'translated', 81) RETURNING id
```
Expected behavior:
Chat being open

Video/Screenshot link (optional):
![image](https://user-images.githubusercontent.com/10233975/28430589-aa27e01a-6d46-11e7-82fc-18473bcf0e5e.png)


Channel = request.env['mail.channel']
        Rating = request.env['rating.rating']
        channel = Channel.sudo().search([('uuid', '=', uuid)], limit=1)
        if channel:
            
            values = {
                'rating': rate,
                'consumed': True
            }
            if not channel.rating_ids:
                values.update({
                    'res_id': channel.id,
                    'res_model': 'mail.channel',
                    'rating': rate,
                    'feedback': reason,
                })
                
                if channel.channel_partner_ids:
                    values['rated_partner_id'] = channel.channel_partner_ids[0] and channel.channel_partner_ids[0].id or False
                
                rating = Rating.sudo().create(values)
            else:
                if reason:
                    values['feedback'] = reason
                rating = channel.rating_ids[0]
                rating.write(values)
            return rating.id
        return False