[IMP] hr : remove 'complete_name' field. Use 'display_name' instead.

This commit is contained in:
Ravi Gohil
2016-04-13 12:28:34 +02:00
committed by Jérome Maes
parent d36ce33877
commit c232e3cbcb
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -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),
+1 -1
View File
@@ -450,7 +450,7 @@
<field name="field_parent">child_ids</field>
<field name="arch" type="xml">
<tree string="Companies">
<field name="complete_name"/>
<field name="display_name"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="manager_id"/>
</tree>