Commit 2979d722 by Maria Agustina

412

1 parent c9f7af58
...@@ -39,12 +39,10 @@ ...@@ -39,12 +39,10 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<form> <form>
<header> <header>
<button name="aprobar_liquidaciones" class='btn btn-primary' string="Aprobar" type="object" attrs='{ "invisible" : [("estado", "!=", "borrador")] }' />
<button name="aprobar_liquidaciones" class='btn btn-primary' string="Aprobar" type="object" /> <button name="abonar_liquidaciones" string="Abonar" type="object" attrs='{ "invisible" : [("estado", "!=", "aprobado")] }' />
<button name="abonar_liquidaciones" string="Abonar" type="object" /> <button name="volver_borrador" string="Volver a Borrador" type="object" attrs='{ "invisible" : [("estado", "!=", "aprobado")] }'/>
<button name="volver_borrador" string="Volver a Borrador" type="object" />
<field name="estado" widget="statusbar"/> <field name="estado" widget="statusbar"/>
</header> </header>
<sheet> <sheet>
...@@ -59,11 +57,11 @@ ...@@ -59,11 +57,11 @@
<field colspan="2" name="hasta" readonly="1" /> <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" attrs='{ "readonly" : [("estado", "!=", "borrador")] }' />
<field colspan="2" name="abonado" /> <field colspan="2" name="abonado" attrs='{ "readonly" : [("estado", "!=", "borrador")] }'/>
</group> </group>
<group col="4" string="Tareas"> <group col="4" string="Tareas">
<field nolabel="1" widget="one2many" name="lineas_tareas"> <field nolabel="1" widget="one2many" name="lineas_tareas" attrs='{ "readonly" : [("estado", "!=", "borrador")] }'>
<tree create="1" edit="1" editable="bot"> <tree create="1" edit="1" editable="bot">
<field name="state" readonly="1" /> <field name="state" readonly="1" />
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!