llamadas_pendientes.xml 2.41 KB
<?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>