Commit 13b654c4 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

se debe reiniciar servidor

parent 9292b942
......@@ -20,15 +20,7 @@ class QVEmpleados(models.Model):
],'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'),
......@@ -70,6 +62,11 @@ class QVEmpleados(models.Model):
],'Tipo de Vivienda')
hijos = fields.Selection([
('No','No'),
('Si','Si')
],'Hijos')
tipo_via = fields.Char(string='Tipo De Via')
nombre_via = fields.Char(string='Nombre/Numero Via')
......@@ -87,4 +84,56 @@ class QVEmpleados(models.Model):
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
eps = fields.Char(string='EPS')
apellidos = fields.Char(string='Apellidos')
departamento_empleado_ids = fields.One2many('departamento.empleado','empleado_id',string='Departamento de Residencia')
class DepartamentoEmpleado(models.Model):
_name='departamento.empleado'
Departamento=fields.Selection([
('ama','Amazonas'),
('ant','Antioquia'),
('arau','Arauca'),
('atla','Atlantico'),
('bol','Bolivar'),
('boy', 'Boyaca'),
('cald','Caldas'),
('caq','Caqueta'),
('cas','Casanare'),
('cau','Cauca'),
('ces','Cesar'),
('cho','Choco'),
('cor','Cordoba'),
('cun','Cundinamarca'),
('gua','Guainia'),
('guav','Guaviare'),
('hui','Huila'),
('la gua','La Guajira'),
('mag','Magdalena'),
('met','Meta'),
('nar','Nariño'),
('nor','Norte de Santander'),
('put','Putumayo'),
('qui','Quindio'),
('risa','Risaralda'),
('san','San Andres y Providencia'),
('sant','Santander'),
('suc','Sucre'),
('tol','Tolima'),
('vall','Valle del Cauca'),
('vau','Vaupes'),
('vich','Vichada')
],string='Departamento de Residencia')
empleado_id= fields.Many2one('hr.employee',string='Empleado')
\ No newline at end of file
......@@ -53,10 +53,26 @@
<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 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>
<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"/>
......@@ -103,7 +119,26 @@
<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">
......@@ -125,7 +160,7 @@
<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">
<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>
......@@ -146,12 +181,54 @@
<field name="skype"/>
<field name="twitter"/>
</group>
</xpath>
</xpath>
</field>
</record>
</data>
<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 -->
<xpath expr="//notebook" position="inside">
<page string="Currículum Vitae">
<group string="Habilidades"/>
</page>
<page string="Insignias recibidas"/>
<page string="Legal"/>
<page string="Informacion Familiar">
<form>
<sheet>
<group string='Hijos'>
<field name="hijos"></field>
</group>
<group string='Informacion Familiar'>
<field name="tipo_documento"/>
<field name="numero_documento_identidad"/>
<field name="name"/>
<field name="apellidos"/>
<field name="parentesco"/>
<field name="work_phone"/>
<field name="birthday"/>
<field name="mobile_phone" />
</group>
</sheet>
</form>
</page>
<page string="Intereses"/>
<page string="Mascotas"/>
</xpath>
<!-- Ordenamos las páginas alfabéticamente por nombre -->
<xpath expr="//notebook/page" position="after">
<xpath expr="//notebook/page">
<attribute name="name">name</attribute>
</xpath>
</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