vista_maestro.xml
3.53 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="0">
<record id="action_maestro_act_window" model="ir.actions.act_window">
<field name="type">ir.actions.act_window</field>
<field name="name">Maestro de Liquidaciones</field>
<field name="res_model">hgt.masterliquidaciones</field>
<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">
<field name="name">>Maestro de Liquidaciones</field>
<field name="model">hgt.masterliquidaciones</field>
<field name="type">tree</field>
<field name="mode">primary</field>
<field name="priority" eval="16" />
<field name="active" eval="True" />
<field name="arch" type="xml">
<tree>
<field name="titulo" />
<field name="desde" />
<field name="hasta" />
</tree>
</field>
</record>
<record id="view_maestro_form" model="ir.ui.view">
<field name="name">>Maestro de Liquidaciones</field>
<field name="model">hgt.masterliquidaciones</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<header>
<button name="generar_liquidaciones" class='btn btn-primary' 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" widget="many2many_tags" />
</group>
<group col="2" string="Liquidaciones">
<field colspan="2" nolabel="1" name="liquidaciones" />
</group>
<h2>Bitácora</h2>
<group col="3">
<field name="mt_texto"/>
<button name="CargarNotas" string="Archivar en la bitácora" type="object" class="oe_edit_only" />
</group>
<group col="1">
<field name="mt_notitas" nolabel="1" attrs="{'readonly': True}"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_maestro_search" model="ir.ui.view">
<field name="name">Maestro de Liquidaciones</field>
<field name="model">hgt.masterliquidaciones</field>
<field name="arch" type="xml">
<search>
<field name="titulo" />
<field name="desde" />
<field name="hasta" />
</search>
</field>
</record>
</data>
</odoo>