pago_administracion.xml
1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="0">
<act_window id="action_pago_administracion_act_window" name="Pago Administración"
src_model="hgt.registro_cobros" res_model="hgt.pago_administracion"
view_mode="form" target="new" multi="True"
context="{'registro': active_id, }"
/>
<record id="view_pago_administracion_form" model="ir.ui.view">
<field name="name">Pago Administración</field>
<field name="model">hgt.pago_administracion</field>
<field name="type">form</field>
<field name="mode">primary</field>
<field name="arch" type="xml">
<form>
<h1>Pago a Administración</h1>
<group col="2">
<h3 colspan="2" >Caja Origen:<field name="caja_origen" nolabel="1"/></h3>
<h3 colspan="2" >Caja Destino:<field name="caja_destino" nolabel="1"/></h3>
</group>
<group col="2">
<h3 colspan="2" >Monto Disponible en Caja:</h3>
<field colspan="2" name="total" nolabel="1"/>
</group>
<group col="2">
<h3 colspan="2" >Valores a transferir:</h3>
<field name="linea_valores" widget="one2many" colspan="2" nolabel="1">
<tree string="Caption" create="true" delete="true" edit="true" editable="bottom">
<field name="monto"/>
<field name="val_tipo"/>
</tree>
</field>
</group>
<footer>
<div style="text-align:center">
<button type="object" name="pagar_admin" class="btn btn-primary" string="Pagar"/>
</div>
</footer>
</form>
</field>
</record>
</data>
</odoo>