translate=False on 'name' field of crm.lead.tag and res.partner.category

This commit is contained in:
Alexis de Lattre
2017-09-07 18:41:39 +02:00
parent f0adce0034
commit 338d0d445d
2 changed files with 12 additions and 0 deletions

View File

@@ -128,3 +128,9 @@ class ResPartner(models.Model):
res.append(u'%s' % entry['value'])
res = '\n'.join(res)
return res
class ResPartnerCategory(models.Model):
_inherit = 'res.partner.category'
name = fields.Char(translate=False)

View File

@@ -27,3 +27,9 @@ class CrmLead(models.Model):
for lead in self:
rev_prob = lead.probability * lead.planned_revenue / 100.0
lead.probable_revenue = rev_prob
class CrmLeadTag(models.Model):
_inherit = 'crm.lead.tag'
name = fields.Char(translate=False)