translation=False on 'name' of res.partner.category and crm.case.categ

This commit is contained in:
Alexis de Lattre
2017-09-07 18:19:24 +02:00
parent f8720c7a36
commit 8f463db179
3 changed files with 19 additions and 0 deletions

View File

@@ -72,3 +72,9 @@ class Partner(models.Model):
res = super(Partner, self).name_search(
name, args=args, operator=operator, limit=limit)
return [(pid, val.replace('\n', ' ')) for pid, val in res]
class ResPartnerCategory(models.Model):
_inherit = 'res.partner.category'
name = fields.Char(translate=False)