diff --git a/base_usability/partner.py b/base_usability/partner.py index a228262..f3f1d3c 100644 --- a/base_usability/partner.py +++ b/base_usability/partner.py @@ -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) diff --git a/crm_usability/__init__.py b/crm_usability/__init__.py index 3b4c3ed..1a852d7 100644 --- a/crm_usability/__init__.py +++ b/crm_usability/__init__.py @@ -1,3 +1,4 @@ # -*- coding: utf-8 -*- from . import wizard +from . import crm diff --git a/crm_usability/crm.py b/crm_usability/crm.py new file mode 100644 index 0000000..e76a61f --- /dev/null +++ b/crm_usability/crm.py @@ -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 + +from openerp import models, fields + + +class CrmCaseCateg(models.Model): + _inherit = 'crm.case.categ' + + name = fields.Char(translate=False)