From fec76a4931d61d17fe6fb7d96fb30989ddf288a4 Mon Sep 17 00:00:00 2001 From: "Vir (Open ERP)" Date: Thu, 7 Oct 2010 12:39:23 +0530 Subject: [PATCH] [Fix] hr : once in the form view, there is always a message that prompts to say that the record have been modified even if nothing has been done bzr revid: vir@tinyerp.com-20101007070923-c6602jlppu2iiiql --- addons/hr/hr.py | 2 +- addons/hr/hr_view.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/hr/hr.py b/addons/hr/hr.py index e2da2b9cf7b..803210ddbff 100644 --- a/addons/hr/hr.py +++ b/addons/hr/hr.py @@ -136,7 +136,7 @@ class hr_employee(osv.osv): 'department_id':fields.many2one('hr.department', 'Department'), 'address_id': fields.many2one('res.partner.address', 'Working Address'), 'address_home_id': fields.many2one('res.partner.address', 'Home Address'), - 'work_phone': fields.related('address_id', 'phone', type='char', string='Work Phone', readonly=True), + 'work_phone': fields.related('address_id', 'phone', type='char', size=32, string='Work Phone', readonly=True), 'work_email': fields.related('address_id', 'email', type='char', size=240, string='Work E-mail'), 'work_location': fields.char('Office Location', size=32), 'notes': fields.text('Notes'), diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index b47bf23d6fc..929afbe3d84 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -99,7 +99,7 @@ search - + @@ -145,7 +145,7 @@ form tree,form [] - {"search_default_department_id": department_id} + {"search_default_department_id": department_id,"search_default_active":eval('True')} The employee directory contains all data related to your employees : from their photo up to their hourly estimated costs for the timesheets.Employees are managed by departments and can be linked to users to manage their access rights.