Created
September 22, 2015 18:02
-
-
Save palichis/4c1b0b98b447333fed45 to your computer and use it in GitHub Desktop.
employee view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<record model="ir.ui.view" id="view_employee_modified_form"> | |
<field name="name">hr.employee.modified.form</field> | |
<field name="model">hr.employee</field> | |
<field name="type">form</field> | |
<field name="inherit_id" ref="hr.view_employee_form"/> | |
<field name="arch" type="xml"> | |
<field name="company_id" position="replace"> | |
<field name="company_id" invisible="1"/> | |
<field name="work_email" widget="email" colspan="3"/> | |
</field> | |
<group string="Active" name="active_group"> | |
<field name="active"/> | |
</group> | |
<!--<xpath expr="/form/notebook/page[@string='Notes']" position="replace"></xpath>--> | |
<field name="name" position="replace"> | |
<field name="name" colspan="3" string="Numero CI/ID"/> | |
<field name="id_type" string="Tipo ID" colspan="3"/> | |
<field name="employee_first_lastname" colspan="3" required="1"/> | |
<field name="employee_first_name" colspan="3" required="1"/> | |
</field> | |
<!--<xpath expr="/form/group/group/field[@name='user_id']" position="replace"> </xpath>--> | |
<xpath expr="/form/sheet/notebook/page/group/group/field[@name='department_id']" position="replace"> | |
<field name="department_id" colspan="6" required="1" on_change="limpiar_puesto()"/> | |
<field name="job_id" colspan="6" required="1" domain="[('department_id','=',department_id)]"/> | |
<field name="user_id" colspan="6" readonly="1"/> | |
</xpath> | |
<xpath expr="/form/sheet/notebook/page/group/group/field[@name='parent_id']" position="replace"/> | |
<xpath expr="/form/sheet/notebook" position="replace"> | |
<!--xpath expr="/form/notebook/page[@string='Miscellaneous']" position="replace"></xpath--> | |
<notebook colspan="6"> | |
<page string="Personal Information" sequence="1" col="6"> | |
<group col="2" colspan="2"> | |
<separator colspan="2" string="Personal"/> | |
<field name="partner_id" invisible="1"/> | |
<field name="birthday" required="1"/> | |
<field name="gender" string="Género"/> | |
<field name="marital_id"/> | |
<field name="country_id" string="Nacionalidad"/> | |
<field name="blood_type"/> | |
<field name="discapacitado"/> | |
<field name="tipo_discapacidad" attrs="{'invisible': [('discapacitado', '!=',True)]}"/> | |
<field name="porcentaje_discapacidad" attrs="{'invisible': [('discapacitado', '!=',True)]}"/> | |
<field name="id_conadis" attrs="{'invisible': [('discapacitado', '!=',True)]}"/> | |
</group> | |
<group col="2" colspan="2"> | |
<separator colspan="2" string="Contacto"/> | |
<field name="state_id" required="1" on_change="onchange_provincia()"/> | |
<field name="canton_id" required="1" domain="[('state_id','=',state_id)]" on_change="onchange_canton()"/> | |
<field name="parish_id" domain="[('canton_id','=',canton_id)]"/> | |
<field name="address" required="1"/> | |
<field name="house_phone" colspan="1" required="1"/> | |
<field name="mobile_phone" colspan="1" string="Móvil"/> | |
<field name="email" widget="email"/> | |
<field name="contacto_emergencia"/> | |
<field name="numero_emergencia"/> | |
</group> | |
<group col="2" colspan="2"> | |
<separator colspan="2" string="Bancaria"/> | |
<field name="bank_account_id" required="1"/> | |
<separator colspan="2" string="Otros"/> | |
<field name="ssnid"/> | |
<field name="sinid" string="Núm. Hist. Clínica"/> | |
<field name="identification_id"/> | |
<field name="passport_id"/> | |
<field name="otherid"/> | |
<field name="coach_id" invisible="1"/> | |
</group> | |
</page> | |
<page string="Cargas Familiares"> | |
<field name="family_item_ids" nolabel="1" colspan="4"/> | |
</page> | |
<page string="Educación y Capacitación"> | |
<notebook> | |
<page string="Educación"> | |
<field name="academic_ids" nolabel="1" colspan="4"/> | |
</page> | |
<page string="Cursos"> | |
<field name="course_ids" nolabel="1" colspan="4"/> | |
</page> | |
</notebook> | |
</page> | |
<page string="Impuesto Renta"> | |
<notebook> | |
<page string="Proyecciones"> | |
<field colspan="4" name="projection_ids" nolabel="1"> | |
<tree string="Proyecciones"> | |
<field name="fy_id"/> | |
<field name="total"/> | |
</tree> | |
<form string="Proyecciones"> | |
<field name="name" required="1"/> | |
<field name="fy_id" required="1" domain="[('active','in',(True,False))]"/> | |
<field name="total"/> | |
<field colspan="4" name="line_ids" nolabel="1"> | |
<tree string="Anual Proyectado" editable="bottom"> | |
<field name="projection_id" required="1"/> | |
<field name="value" required="1"/> | |
</tree> | |
</field> | |
</form> | |
</field> | |
</page> | |
<page string="Impuesto a la Renta"> | |
<field colspan="4" name="rent_tax_ids" nolabel="1"> | |
<tree string="Imp. Retenido"> | |
<field name="name"/> | |
<field name="fy_id"/> | |
</tree> | |
<form string="Imp. Retenido"> | |
<field name="name" required="1"/> | |
<field name="fy_id" required="1" domain="[('active','in',(True,False))]"/> | |
<field colspan="4" name="line_ids" nolabel="1"> | |
<tree string="Mensual retenido" editable="bottom"> | |
<field name="period_id" required="1"/> | |
<field name="apt_proy"/> | |
<field name="apt_noproy"/> | |
<!--field name="noapt_proy"/> | |
<field name="noapt_noproy"/--> | |
<field name="valor"/> | |
</tree> | |
</field> | |
</form> | |
</field> | |
</page> | |
</notebook> | |
</page> | |
<page string="Experiencia Laboral"> | |
<field name="last_work" nolabel="1"> | |
<tree editable="top"> | |
<field name="name"/> | |
<field name="cargo_id"/> | |
<field name="date_start"/> | |
<field name="date_end"/> | |
<field name="partner_type"/> | |
</tree> | |
</field> | |
</page> | |
</notebook> | |
</xpath> | |
</field> | |
</record> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment