Commit 9292b942 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

se customiza la imagen con herencia y se generan nuevos grupos

parent 75aea012
......@@ -7,4 +7,84 @@ class QVEmpleados(models.Model):
('OP','O+'),
('ON','O-'),
('BP','A+'),
('BN','A-')],'RH')
\ No newline at end of file
('BN','A-')],'RH')
tipo_documento = fields.Selection([
('CC','Cédula de Ciudadania'),
('TI','Tarjeta de Identidad'),
('TE','Tarjeta de Extranjeria'),
('NIT','NIT'),
('Pasaporte','Pasaporte'),
('DIE','Documento de Identificacion del Extranjero'),
('SIE','Sin Identificacion del Extrajero o para Uso de la DIAN')
],'Tipo de Documento ')
departamento = fields.Selection([
('ama', 'Amazonas'),
('ant', 'Antioquia'),
('atl', 'Atlántico'),
('bol', 'Bolívar'),
('boy', 'Boyacá')
],'Departamento de Residencia')
ciudad = fields.Selection([
('bog', 'Bogotá'),
('cal', 'Cali'),
('med', 'Medellín'),
('bar', 'Barranquilla'),
('car', 'Cartagena')
],'Ciudad de Residencia')
genero = fields.Selection([
('No binario','No binario'),
('Femenino','Femenino'),
('Masculino','Masculino'),
('Transgenero','Transgenero')
],'Genero')
parentesco = fields.Selection([
('Madre','Madre'),
('Padre','Padre'),
('Hermano','Hermano'),
('Hermana','Hermana'),
('Hijo','Hijo Mayor de Edad'),
('conyuge','Conyuge '),
('Abuelo','Abuelo'),
('Abuela','Abuela'),
('Tio','Tio'),
('Tia','Tia'),
('Amigo','Amigo'),
],'Parentesco')
vivienda = fields.Selection([
('Apartamento','Apartamento'),
('Apartaestudio','Apartaestudio'),
('Casa','Casa'),
('Penthose','Penthose'),
],'Tipo de Vivienda')
tipo_via = fields.Char(string='Tipo De Via')
nombre_via = fields.Char(string='Nombre/Numero Via')
via_principal = fields.Char(string='Com.Via Principal')
numero_via = fields.Char(string="Numero Via sec.")
comp_via = fields.Char(string="Comp.Via Sec.")
numero_casa = fields.Char(string="Numero Casa/Torre")
complemento = fields.Char(string="Complemento")
barrio = fields.Char(string="Barrio")
localidad = fields.Char(string="Localidad")
linkedin = fields.Char(string="Linkedin")
facebook = fields.Char(string="Facebook")
instagram = fields.Char(string="Instagram")
skype = fields.Char(string="Skype")
twitter = fields.Char(string="Twitter")
numero_documento_identidad = fields.Char(string='Numero de Documento')
fondo_pensiones = fields.Char(string='Fondo de Pensiones')
eps = fields.Char(string='EPS')
\ No newline at end of file
<?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"></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>
</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]/g" position="inside">
<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>
</data>
</odoo>
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