llamadas_pendientes.xml
2.41 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
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data noupdate="0">
<record id="view_llamadas_pendientes_form" model="ir.ui.view">
<field name="name">Agendar llamada</field>
<field name="model">hgt.llamada_pendiente</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<group col="4" string="Datos de la llamada" >
<field name="organizacion" colspan="2" required="1"/>
<field name="fecha_hoy" readonly="1" colspan="2" />
<field name="fecha_llamada" colspan="2" required="1"/>
<field name="medio" colspan="2" required="1"/>
<field name="notas" colspan="2" />
</group>
<group col="4" string="Contacto">
<field name="contacto" colspan="2" />
<field name="otro" colspan="2" />
<field name="otro_nombre" colspan="2" attrs="{ 'invisible': [('otro','=', False)], 'required': [('otro','=', True)] }"/>
<field name="otro_telefono" colspan="2" attrs="{ 'invisible': [('otro','=', False)], 'required': [('otro','=', True),('medio', '=', 'Telefono')] }"/>
<field name="otro_email" colspan="2" attrs="{ 'invisible': [('otro','=', False)], 'required': [('otro','=', True),('medio', '=', 'E-Mail')] }"/>
<field name="otro_celular" colspan="2" attrs="{ 'invisible': [('otro','=', False)], 'required': [('otro','=', True),('medio', '=', 'Whatsapp')] }"/>
</group>
<group col="4" string="Temas a tratar" >
<field name="temas" nolabel="1" colspan="4"/>
</group>
<footer>
<button name="crear_tarea" string="Agendar llamada" type="object" class="oe_highlight"/>
</footer>
</form>
</field>
</record>
<record id="action_llamadas_pendientes" model="ir.actions.act_window">
<field name="name">Wizard</field>
<field name="res_model">hgt.llamada_pendiente</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
</data>
</odoo>