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)

View File

@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from . import wizard
from . import crm

12
crm_usability/crm.py Normal file
View File

@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-
# © 2017 Akretion (http://www.akretion.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
# @author Alexis de Lattre <alexis.delattre@akretion.com>
from openerp import models, fields
class CrmCaseCateg(models.Model):
_inherit = 'crm.case.categ'
name = fields.Char(translate=False)