Commit 79b0ebb3 by Maria Agustina

avance

1 parent d0d36694
...@@ -34,6 +34,9 @@ class hgt_masterliquidaciones(models.Model): ...@@ -34,6 +34,9 @@ class hgt_masterliquidaciones(models.Model):
string='Desde', string='Desde',
default=fields.Date.context_today, default=fields.Date.context_today,
) )
def generar_liquidaciones(self):
return 1
......
...@@ -48,11 +48,11 @@ ...@@ -48,11 +48,11 @@
<h2>Liquidación <field colspan="2" nolabel="1" name="nombre" /></h2> <h2>Liquidación <field colspan="2" nolabel="1" name="nombre" /></h2>
</group> </group>
<group col="2"> <group col="2">
<field colspan="2" name="usuario" /> <field colspan="2" name="usuario" readonly="1" />
</group> </group>
<group col="4"> <group col="4">
<field colspan="2" name="desde" /> <field colspan="2" name="desde" readonly="1" />
<field colspan="2" name="hasta" /> <field colspan="2" name="hasta" readonly="1" />
</group> </group>
<group col="4"> <group col="4">
<field colspan="2" name="total" /> <field colspan="2" name="total" />
...@@ -61,11 +61,11 @@ ...@@ -61,11 +61,11 @@
<group col="4" string="Tareas"> <group col="4" string="Tareas">
<field nolabel="1" name="lineas_tareas"> <field nolabel="1" name="lineas_tareas">
<tree> <tree>
<field name="state" /> <field name="state" readonly="1" />
<field name="name" /> <field name="name" readonly="1" />
<field name="minutos_reales" sum='1'/> <field name="minutos_reales" sum='1' readonly="1" />
<field name="tipo_cargo" /> <field name="tipo_cargo" />
<field name="subtotal" sum='1' /> <field name="subtotal" sum='1' readonly="1" />
</tree> </tree>
</field> </field>
</group> </group>
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
<field name="view_type">form</field> <field name="view_type">form</field>
<field name="target">current</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>
<record id="view_maestro_tree" model="ir.ui.view"> <record id="view_maestro_tree" model="ir.ui.view">
...@@ -35,20 +38,24 @@ ...@@ -35,20 +38,24 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form> <form>
<group col="2"> <header>
<field colspan="2" name="titulo" /> <button name="generar_liquidaciones" class="oe_edit_only" string="Generar Liquidaciones" type="object" />
</group> </header>
<group col="4"> <sheet>
<field colspan="2" name="desde" /> <group col="2">
<field colspan="2" name="hasta" /> <field colspan="2" name="titulo" />
</group> </group>
<group col="2" string="Ejecutores"> <group col="4">
<field colspan="2" nolabel="1" name="ejecutores" /> <field colspan="2" name="desde" />
</group> <field colspan="2" name="hasta" />
<group col="2" string="Liquidaciones"> </group>
<field colspan="2" nolabel="1" name="liquidaciones" /> <group col="2" string="Ejecutores">
</group> <field colspan="2" nolabel="1" name="ejecutores" />
</group>
<group col="2" string="Liquidaciones">
<field colspan="2" nolabel="1" name="liquidaciones" />
</group>
</sheet>
</form> </form>
</field> </field>
</record> </record>
......
...@@ -9,6 +9,9 @@ ...@@ -9,6 +9,9 @@
<field name="view_mode">tree,form</field> <field name="view_mode">tree,form</field>
<field name="view_type">form</field> <field name="view_type">form</field>
<field name="target">current</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>
<record id="view_tipocargo_tree" model="ir.ui.view"> <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!