From c232e3cbcbeb0f84a5bcec4d12557eacc1fbc65a Mon Sep 17 00:00:00 2001 From: Ravi Gohil Date: Fri, 25 Mar 2016 10:04:04 +0100 Subject: [PATCH] [IMP] hr : remove 'complete_name' field. Use 'display_name' instead. --- addons/hr/models/hr.py | 5 ----- addons/hr/views/hr_views.xml | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/addons/hr/models/hr.py b/addons/hr/models/hr.py index e33e34bced5..ae0215a92da 100644 --- a/addons/hr/models/hr.py +++ b/addons/hr/models/hr.py @@ -269,13 +269,8 @@ class hr_department(osv.osv): _description = "Department" _inherit = ['mail.thread', 'ir.needaction_mixin'] - def _dept_name_get_fnc(self, cr, uid, ids, prop, unknow_none, context=None): - res = self.name_get(cr, uid, ids, context=context) - return dict(res) - _columns = { 'name': fields.char('Department Name', required=True), - 'complete_name': fields.function(_dept_name_get_fnc, type="char", string='Name'), 'active': fields.boolean('Active'), 'company_id': fields.many2one('res.company', 'Company', select=True, required=False), 'parent_id': fields.many2one('hr.department', 'Parent Department', select=True), diff --git a/addons/hr/views/hr_views.xml b/addons/hr/views/hr_views.xml index 63091d0e3fa..61a444a42b1 100644 --- a/addons/hr/views/hr_views.xml +++ b/addons/hr/views/hr_views.xml @@ -450,7 +450,7 @@ child_ids - +