[FIX]: fix a usability problem for the hr and payroll related to the employee passport informaion
bzr revid: mga@tinyerp.com-20101007073131-ba4dkusjnz6kuj8d
This commit is contained in:
+2
-1
@@ -127,7 +127,8 @@ class hr_employee(osv.osv):
|
||||
'resource_id': fields.many2one('resource.resource', 'Resource', ondelete='cascade', required=True),
|
||||
'coach_id': fields.many2one('hr.employee', 'Coach'),
|
||||
'job_id': fields.many2one('hr.job', 'Job'),
|
||||
'photo': fields.binary('Photo')
|
||||
'photo': fields.binary('Photo'),
|
||||
'passport_id':fields.char('Passport', size=64)
|
||||
}
|
||||
|
||||
def onchange_company(self, cr, uid, ids, company, context=None):
|
||||
|
||||
+20
-19
@@ -36,31 +36,32 @@
|
||||
<notebook colspan="6">
|
||||
<page string="Personal Information">
|
||||
<group col="2" colspan="2">
|
||||
<separator colspan="2" string="Social IDs"/>
|
||||
<field name="ssnid"/>
|
||||
<field name="sinid" groups="base.group_extended"/>
|
||||
<field name="identification_id" groups="base.group_extended"/>
|
||||
<separator colspan="2" string="Social IDs"/>
|
||||
<field name="ssnid"/>
|
||||
<field name="sinid" groups="base.group_extended"/>
|
||||
<field name="identification_id" groups="base.group_extended"/>
|
||||
<field name="passport_id"/>
|
||||
</group>
|
||||
<group col="2" colspan="2">
|
||||
<separator string="Status" colspan="2"/>
|
||||
<field name="gender"/>
|
||||
<field name="marital" widget="selection"/>
|
||||
<field name="country_id"/>
|
||||
<field name="birthday"/>
|
||||
<separator string="Status" colspan="2"/>
|
||||
<field name="gender"/>
|
||||
<field name="marital" widget="selection"/>
|
||||
<field name="country_id"/>
|
||||
<field name="birthday"/>
|
||||
</group>
|
||||
<group col="2" colspan="2">
|
||||
<separator string="Contact Information" colspan="2"/>
|
||||
<field name="address_home_id" colspan="2"/>
|
||||
<field name="partner_id" invisible="1" />
|
||||
<field name="address_id" colspan="2" domain="[('partner_id', '=', partner_id)]"/>
|
||||
<field name="work_phone"/>
|
||||
<field name="work_email" widget="email" />
|
||||
<field name="work_location"/>
|
||||
<separator string="Contact Information" colspan="2"/>
|
||||
<field name="address_home_id" colspan="2"/>
|
||||
<field name="partner_id" invisible="1" />
|
||||
<field name="address_id" colspan="2" domain="[('partner_id', '=', partner_id)]"/>
|
||||
<field name="work_phone"/>
|
||||
<field name="work_email" widget="email" />
|
||||
<field name="work_location"/>
|
||||
</group>
|
||||
<group col="2" colspan="2">
|
||||
<separator string="Position" colspan="2"/>
|
||||
<field name="job_id" domain="[('state','!=','old')]"/>
|
||||
<field name="coach_id" />
|
||||
<separator string="Position" colspan="2"/>
|
||||
<field name="job_id" domain="[('state','!=','old')]"/>
|
||||
<field name="coach_id" />
|
||||
</group>
|
||||
</page>
|
||||
<page string="Categories">
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
<field name="type">form</field>
|
||||
<field name="inherit_id" ref="hr.view_employee_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="identification_id" position="after">
|
||||
<field name="passport_id" position="replace">
|
||||
<field name="passport_id"/>
|
||||
</field>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user