translation=False on 'name' of res.partner.category and crm.case.categ
This commit is contained in:
@@ -72,3 +72,9 @@ class Partner(models.Model):
|
|||||||
res = super(Partner, self).name_search(
|
res = super(Partner, self).name_search(
|
||||||
name, args=args, operator=operator, limit=limit)
|
name, args=args, operator=operator, limit=limit)
|
||||||
return [(pid, val.replace('\n', ' ')) for pid, val in res]
|
return [(pid, val.replace('\n', ' ')) for pid, val in res]
|
||||||
|
|
||||||
|
|
||||||
|
class ResPartnerCategory(models.Model):
|
||||||
|
_inherit = 'res.partner.category'
|
||||||
|
|
||||||
|
name = fields.Char(translate=False)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from . import wizard
|
from . import wizard
|
||||||
|
from . import crm
|
||||||
|
|||||||
12
crm_usability/crm.py
Normal file
12
crm_usability/crm.py
Normal 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)
|
||||||
Reference in New Issue
Block a user