solicitudes.xml
3.22 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
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="0">
<!-- explicit list view definition -->
<record model="ir.ui.view" id="hgt_lappa_solicitudes_list">
<field name="name">Solicitudes de igreso</field>
<field name="model">lappa.solicitudes</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="nombre"/>
<field name="fecha"/>
<field name="estado"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="hgt_lappa_solicitudes_form">
<field name="name">Solicitudes de igreso</field>
<field name="model">lappa.solicitudes</field>
<field name="arch" type="xml">
<form>
<header>
<field name="estado" widget="statusbar" readonly="1"/>
</header>
<sheet>
<field name="name" style="font-size:18px" nolabel="1"/>
<group col="4" string="Datos del Solicitante">
<field name="nombre"/>
<field name="inicio"/>
<field name="celular"/>
<field name="cuit"/>
<field name="localidad"/>
<field name="email"/>
</group>
<button name="Revisar" class='btn btn-success' string="Comensar a revisar" type="object" attrs="{ 'invisible' : [('estado','!=','a_revisar')]}" />
<group col="1" style="width: 800px;">
<h2>Bitacora</h2>
<field name="texto" nolabel="1"/>
</group>
<group col="1">
<field name="notitas" nolabel="1" attrs="{'readonly': True}"/>
</group>
<group string="Resolucion de solicitud" col="5">
<button name="Rechazar" class='btn btn-danger' string="Rechazar" type="object" attrs="{ 'invisible' : [('estado','!=','revision')]}" />
<button name="AceptarNuevo" class='btn btn-info' string="Aceptar y generar nuevo trannsportista" type="object" attrs="{ 'invisible' : [('estado','!=','revision')]}" />
<button name="AceptarRelacionar" class='btn btn-success' string="Aceptar Y relacioar a transportista existente" type="object" attrs="{ 'invisible' : [('estado','!=','revision')]}" />
</group>
<group attrs="{ 'invisible' : [('estado','in',['a_revisar','rechazado'])]}">
<h4>Transportista al que se relacionara o se relaciono</h4>
<field name="transportista" nolabel="1"/>
</group>
<group attrs="{ 'invisible' : [('estado','in',['a_revisar','rechazado'])]}">
<h4>Usuario generado para el transportista</h4>
<field name="usuario" nolabel="1"/>
</group>
</sheet>
</form>
</field>
</record>
<!-- actions opening views on models -->
<record model="ir.actions.act_window" id="hgt_lappa_solicitudes_action_window">
<field name="name">Solicitudes de igreso</field>
<field name="res_model">lappa.solicitudes</field>
<field name="view_mode">tree,form</field>
</record>
</data>
</odoo>