|
@@ -0,0 +1,57 @@
|
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
+<openerp>
|
|
|
|
+ <data>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <record id="action_view_crm_mensaje_form" model="ir.actions.act_window">
|
|
|
|
+ <field name="name">Crear Mensaje</field>
|
|
|
|
+ <field name="res_model">crm.mensaje</field>
|
|
|
|
+ <field name="view_type">form</field>
|
|
|
|
+ <field name="view_mode">tree,form</field>
|
|
|
|
+ <field name="domain">[('opportunity_id', '=', active_id)]</field>
|
|
|
|
+ <field name="context">{'search_default_opportunity_id': active_id, 'default_opportunity_id': active_id}</field>
|
|
|
|
+ <field name="help" type="html">
|
|
|
|
+ <p>
|
|
|
|
+ Esta aplicación se utiliza para registrar los datos más importantes de una conversación por medio de mensajes con el cliente.
|
|
|
|
+
|
|
|
|
+ Los datos registrados son: el asunto, la fecha y hora, el cliente, etc.
|
|
|
|
+ </p>
|
|
|
|
+ </field>
|
|
|
|
+ </record>
|
|
|
|
+ <!-- <field name="view_id" ref="crm_mensaje.crm_case_mensaje_form_view"/>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <record id="action_view_mensaje_id" model="ir.actions.act_window">
|
|
|
|
+ <field name="name">Mensaje</field>
|
|
|
|
+ <field name="res_model">crm.mensaje</field>
|
|
|
|
+ <field name="view_mode">tree,form</field>
|
|
|
|
+ <field name="domain">[('lead_id', '=', active_id)]</field>
|
|
|
|
+ <field name="context">{'search_default_lead_id': active_id, 'default_lead_id': active_id}</field>
|
|
|
|
+ <field name="help" type="html">
|
|
|
|
+ <p>
|
|
|
|
+ Odoo's project management allows you to manage the pipeline of your tasks efficiently. You can track progress, discuss on tasks, attach documents, etc.
|
|
|
|
+ </p>
|
|
|
|
+ </field>
|
|
|
|
+ </record> -->
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <record id="crm_mensaje_inherit_form" model="ir.ui.view">
|
|
|
|
+ <field name="name">Crm Lead</field>
|
|
|
|
+ <field name="model">crm.lead</field>
|
|
|
|
+ <field name="inherit_id" ref="crm.crm_case_form_view_leads" />
|
|
|
|
+ <field name="arch" type="xml">
|
|
|
|
+ <div class="oe_right oe_button_box" position="inside">
|
|
|
|
+ <button class="oe_stat_button" type="action" name="%(bi_crm_mensaje.action_view_crm_mensaje_form)d"
|
|
|
|
+ context="{'default_partner_id': partner_id }"
|
|
|
|
+ icon="fa-tasks">
|
|
|
|
+ <field string="Mensaje" name="mensaje_number" widget="statinfo"/>
|
|
|
|
+ </button>
|
|
|
|
+ </div>
|
|
|
|
+ <button name="%(crm.action_crm_lead2opportunity_partner)d" position="after">
|
|
|
|
+ <button name="%(bi_crm_mensaje.action_view_crm_mensaje_form)d" string="Crear Mensaje" type="action"/>
|
|
|
|
+ </button>
|
|
|
|
+ </field>
|
|
|
|
+ </record>
|
|
|
|
+ </data>
|
|
|
|
+</openerp>
|