Commit 79b0ebb3 by Maria Agustina

avance

1 parent d0d36694
......@@ -34,6 +34,9 @@ class hgt_masterliquidaciones(models.Model):
string='Desde',
default=fields.Date.context_today,
)
def generar_liquidaciones(self):
return 1
......
......@@ -48,11 +48,11 @@
<h2>Liquidación <field colspan="2" nolabel="1" name="nombre" /></h2>
</group>
<group col="2">
<field colspan="2" name="usuario" />
<field colspan="2" name="usuario" readonly="1" />
</group>
<group col="4">
<field colspan="2" name="desde" />
<field colspan="2" name="hasta" />
<field colspan="2" name="desde" readonly="1" />
<field colspan="2" name="hasta" readonly="1" />
</group>
<group col="4">
<field colspan="2" name="total" />
......@@ -61,11 +61,11 @@
<group col="4" string="Tareas">
<field nolabel="1" name="lineas_tareas">
<tree>
<field name="state" />
<field name="name" />
<field name="minutos_reales" sum='1'/>
<field name="state" readonly="1" />
<field name="name" readonly="1" />
<field name="minutos_reales" sum='1' readonly="1" />
<field name="tipo_cargo" />
<field name="subtotal" sum='1' />
<field name="subtotal" sum='1' readonly="1" />
</tree>
</field>
</group>
......
......@@ -9,6 +9,9 @@
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="target">current</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">Cree el primer Maestro de Liquidaciones</p>
</field>
</record>
<record id="view_maestro_tree" model="ir.ui.view">
......@@ -35,20 +38,24 @@
<field name="arch" type="xml">
<form>
<group col="2">
<field colspan="2" name="titulo" />
</group>
<group col="4">
<field colspan="2" name="desde" />
<field colspan="2" name="hasta" />
</group>
<group col="2" string="Ejecutores">
<field colspan="2" nolabel="1" name="ejecutores" />
</group>
<group col="2" string="Liquidaciones">
<field colspan="2" nolabel="1" name="liquidaciones" />
</group>
<header>
<button name="generar_liquidaciones" class="oe_edit_only" string="Generar Liquidaciones" type="object" />
</header>
<sheet>
<group col="2">
<field colspan="2" name="titulo" />
</group>
<group col="4">
<field colspan="2" name="desde" />
<field colspan="2" name="hasta" />
</group>
<group col="2" string="Ejecutores">
<field colspan="2" nolabel="1" name="ejecutores" />
</group>
<group col="2" string="Liquidaciones">
<field colspan="2" nolabel="1" name="liquidaciones" />
</group>
</sheet>
</form>
</field>
</record>
......
......@@ -9,6 +9,9 @@
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="target">current</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">Cree el primer Tipo de Cargo</p>
</field>
</record>
<record id="view_tipocargo_tree" model="ir.ui.view">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!