registro_cobros.xml
2.74 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
51
52
53
54
55
56
57
58
59
60
61
62
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="0">
<record id="action_registro_cobros_act_window" model="ir.actions.act_window">
<field name="type">ir.actions.act_window</field>
<field name="name">Registro de Cobros</field>
<field name="res_model">hgt.registro_cobros</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="target">current</field>
<!-- <field name="domain">[]</field> idea: despues agregar domain de que solo el cobrador puede ver su caja y duplicar menu para que admin vea y asigne -->
</record>
<record id="view_registro_cobros_tree" model="ir.ui.view">
<field name="name">Registro de Cobros</field>
<field name="model">hgt.registro_cobros</field>
<field name="type">tree</field>
<field name="mode">primary</field>
<field name="priority" eval="16" />
<field name="arch" type="xml">
<tree>
<field name="cobrador"/>
<field name="caja"/>
<field name="total"/>
</tree>
</field>
</record>
<record id="view_registro_cobros_form" model="ir.ui.view">
<field name="name">Registro de Cobros</field>
<field name="model">hgt.registro_cobros</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<header>
<!-- <button type="action" name="%(action_pago_administracion_act_window)d" string="Pagar a Administración" class="btn btn-primary"
context="{'registro': id }"/> -->
<button type="object" name="pago_administracion" string="Pagar a Administración" class="btn btn-primary" context="{'registro': id }"/>
<button type="object" name="registrar_valores" string="Ingresar valores a caja" class="btn"/>
</header>
<group col="2">
<h1 colspan="2"> Registro de Cobros </h1>
<div colspan="2"><h3>Cobrador:<field name="cobrador" nolabel="1"/></h3></div>
<div colspan="2"><h3>Caja: <field name="caja" nolabel="1"/></h3></div>
</group>
<group col="2">
<h3>Valores:</h3>
<field name="valores_cobro" colspan="2" nolabel="1" >
<tree create="true" delete="true" edit="true" editable="bottom">
<field name="monto"/>
</tree>
</field>
<h3>Total en Caja: <field name="total" nolabel="1"/></h3>
</group>
</form>
</field>
</record>
</data>
</odoo>