فهرست منبع

phonecall_history_inlead

Sebas 7 سال پیش
کامیت
9546c0bf6e
9فایلهای تغییر یافته به همراه58 افزوده شده و 0 حذف شده
  1. 2 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 12 0
      __openerp__.py
  4. 2 0
      models/__init__.py
  5. BIN
      models/__init__.pyc
  6. 8 0
      models/lead.py
  7. BIN
      models/lead.pyc
  8. BIN
      static/description/icon.png
  9. 34 0
      views/phonecall_view_lead.xml

+ 2 - 0
__init__.py

@@ -0,0 +1,2 @@
+# -*- coding : utf-8 -*-
+from . import models

BIN
__init__.pyc


+ 12 - 0
__openerp__.py

@@ -0,0 +1,12 @@
+# -*- coding ;utf-8 -*-
+{
+    'name': 'Phonecall History in CRM Lead',
+    'author':  'Sebastian Penayo/Eiru',
+    'version': '8.0.1.1.0',
+    'category': 'CRM',
+    'description': "Historial de llamadas telefónicas en Iniciativas del CRM",
+    'depends': [ 'account','crm',],
+    'data': [ 'views/phonecall_view_lead.xml',
+    ],
+    'installable': True,
+}

+ 2 - 0
models/__init__.py

@@ -0,0 +1,2 @@
+# -*- coding : utf-8 -*-
+from . import lead

BIN
models/__init__.pyc


+ 8 - 0
models/lead.py

@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+
+from openerp import fields, models
+
+class lead(models.Model):
+    _inherit = 'crm.lead'
+
+    leadphonecall_ids = fields.One2many('crm.phonecall','opportunity_id', 'Llamadas', )

BIN
models/lead.pyc


BIN
static/description/icon.png


+ 34 - 0
views/phonecall_view_lead.xml

@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+        <record id="view_phonecall_lead_form" model="ir.ui.view">
+            <field name="name">view.phonecall.lead.form</field>
+            <field name="model">crm.lead</field>
+            <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
+            <field name="arch" type="xml">
+                <notebook>
+                    <page string="Historial Llamadas">
+
+                            <group col="1">
+                                <field name="leadphonecall_ids" readonly="1" nolabel='1'>
+                                    <tree>
+                                        <field name="create_date" string="Fecha" data-sortable="true"/>
+                                        <field name="name" string="Resumen de llamada"/>
+                                        <field name="partner_id" string="Cliente" data-sortable="true"/>
+                                        <field name="partner_phone" string="Teléfono"/>
+                                        <field name="priority" string="Prioridad" data-sortable="true"/>
+                                        <field name="state" string="Estado" data-sortable="true"/>
+                                        <field name="categ_id" string="Categoría"/>
+                                        <field name="opportunity_id" string="Iniciativa"/>
+                                        <field name="user_id" string="Encargado"/>
+
+                                    </tree>
+                                </field>
+                            </group>
+
+                    </page>
+                </notebook>
+            </field>
+        </record>
+    </data>
+</openerp>