[IMP] hr : remove 'complete_name' field. Use 'display_name' instead.
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user