Commit f09d5d0e authored by Sebastian Castro's avatar Sebastian Castro
Browse files

se actualiza vista

parent 13b654c4
<?xml version="1.0" encoding="utf-8"?>
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<data>
<record id="qv_empleados_semillero_1" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='private_email']" position="before">
<field name="tipo_documento"></field>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_2" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='tipo_documento']" position="after">
<field name="numero_documento_identidad"></field>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_3" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='personal_information']/group/group[1]" position="inside">
<field name="eps"></field>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_4" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='personal_information']/group/group[1]" position="inside">
<field name="fondo_pensiones"></field>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_5" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='personal_information']/group/group[1]" position="inside">
<field name="genero"></field>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_6" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='personal_information']/group/group[1]" position="inside">
<field name="departamento_empleado_ids">
<tree>
<field name="Departamento"/>
</tree>
<form>
<header>
<button name="save" string="Save" type="object" class="btn-primary"/>
or
<button name="cancel" string="Cancel" type="object" class="btn-secondary" special="cancel"/>
</header>
<sheet>
<group>
<field name="Departamento"/>
</group>
</sheet>
</form>
</field>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_7" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='personal_information']/group/group[1]" position="inside">
<field name="ciudad"></field>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_8" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='personal_information']/group/group[1]" position="inside">
<field name="grupo_sanguineo"></field>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_9" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[@name='personal_information']/group/group[2]" position="attributes">
<attribute name ="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[4]" position="attributes">
<attribute name ="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[6]" position="attributes">
<attribute name ="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[7]" position="attributes">
<attribute name ="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[1]/field[@name='address_home_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[1]/field[@name='bank_account_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[1]/div[@class='o_row']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[1]/label[@for='km_home_work']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//h2[field/@name='job_title']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='private_email']" position="attributes">
<attribute name="string">Correo Personal</attribute>
</xpath>
<xpath expr="//field[@name='phone']" position="attributes">
<attribute name="string">Telefono Personal</attribute>
</xpath>
<xpath expr="//field[@name='mobile_phone']" position="attributes">
<attribute name="string">Celular Corporativo</attribute>
</xpath>
<xpath expr="//field[@name='work_phone']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='coach_id']" position="attributes">
<attribute name="string">Jefe Inmediato</attribute>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_10" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='emergency_contact']" position="after">
<field name="parentesco"></field>
</xpath>
<xpath expr="//form/sheet/notebook/page[@name='personal_information']/group/group[5]" position="attributes">
<attribute name="string" >Contacto de Emergencia </attribute>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_11" model="ir.ui.view">
<field name="name">hr.employee.form.inherit.personal.information</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"></field>
<field name="arch" type="xml">
<xpath expr="//page[@name='personal_information']/group[position()=1]/group[position()=1]" position="after">
<group string="Direccion" col="2">
<field name="tipo_via"></field>
<field name="nombre_via"></field>
<field name="numero_via"></field>
<field name="comp_via"></field>
<field name="vivienda"></field>
<field name="numero_casa"></field>
<field name="complemento"></field>
<field name="barrio"></field>
<field name="localidad"></field>
</group>
</xpath>
<xpath expr="//page[@name='personal_information']/group[last()]" position="inside">
<group string="Redes Sociales">
<field name="linkedin"/>
<field name="facebook"/>
<field name="instagram"/>
<field name="skype"/>
<field name="twitter"/>
</group>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_12" model="ir.ui.view">
<field name="name">hr.employee.form.inherit</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<!-- Heredamos las páginas existentes -->
<record id="qv_empleados_semillero_1" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='private_email']" position="before">
<field name="tipo_documento"></field>
</xpath>
<xpath expr="//field[@name='tipo_documento']" position="after">
<field name="numero_documento_identidad"></field>
</xpath>
<xpath expr="//page[@name='personal_information']/group/group[1]" position="inside">
<field name="eps"></field>
</xpath>
<xpath expr="//page[@name='personal_information']/group/group[1]" position="inside">
<field name="fondo_pensiones"></field>
</xpath>
<xpath expr="//page[@name='personal_information']/group/group[1]" position="inside">
<field name="genero"></field>
</xpath>
</field>
</record>
<record id="qv_empleados_semillero_2" model="ir.ui.view">
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook/page[@name='personal_information']/group/group[2]" position="attributes">
<attribute name ="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[4]" position="attributes">
<attribute name ="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[6]" position="attributes">
<attribute name ="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[7]" position="attributes">
<attribute name ="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[1]/field[@name='address_home_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[1]/field[@name='bank_account_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[1]/div[@class='o_row']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//notebook/page[@name='personal_information']/group/group[1]/label[@for='km_home_work']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//h2[field/@name='job_title']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='private_email']" position="attributes">
<attribute name="string">Correo Personal</attribute>
</xpath>
<xpath expr="//field[@name='phone']" position="attributes">
<attribute name="string">Telefono Personal</attribute>
</xpath>
<xpath expr="//field[@name='mobile_phone']" position="attributes">
<attribute name="string">Celular Corporativo</attribute>
</xpath>
<xpath expr="//field[@name='work_phone']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='coach_id']" position="attributes">
<attribute name="string">Jefe Inmediato</attribute>
</xpath>
<xpath expr="//field[@name='emergency_contact']" position="after">
<field name="parentesco"></field>
</xpath>
<xpath expr="//form/sheet/notebook/page[@name='personal_information']/group/group[5]" position="attributes">
<attribute name="string" >Contacto de Emergencia </attribute>
</xpath>
<xpath expr="//page[@name='personal_information']/group[position()=1]/group[position()=1]" position="after">
<group string="Direccion" col="2">
<field name="tipo_via"></field>
<field name="nombre_via"></field>
<field name="numero_via"></field>
<field name="comp_via"></field>
<field name="vivienda"></field>
<field name="numero_casa"></field>
<field name="complemento"></field>
<field name="barrio"></field>
<field name="localidad"></field>
</group>
</xpath>
<xpath expr="//page[@name='personal_information']/group[last()]" position="inside">
<group string="Redes Sociales">
<field name="linkedin"/>
<field name="facebook"/>
<field name="instagram"/>
<field name="skype"/>
<field name="twitter"/>
</group>
</xpath>
<!-- Heredamos las páginas existentes -->
<xpath expr="//notebook" position="inside">
<page string="Currículum Vitae">
<group string="Habilidades"/>
......@@ -228,7 +134,19 @@
</xpath>
</xpath>
</field>
</record>
</data>
</odoo>
</field>
</record>
</data>
</odoo>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment