Bläddra i källkod

commit informes_crm

sebas 8 år sedan
incheckning
124868b5b3
7 ändrade filer med 153 tillägg och 0 borttagningar
  1. 27 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 45 0
      __openerp__.py
  4. 0 0
      informe_crm.py
  5. BIN
      informe_crm.pyc
  6. 81 0
      informe_crm.xml
  7. BIN
      static/description/icon.png

+ 27 - 0
__init__.py

@@ -0,0 +1,27 @@
+# -*- encoding: utf-8 -*-
+#################################################################################
+#                                                                               #
+#    product_brand for OpenERP                                                  #
+#    Copyright (C) 2009 NetAndCo (<http://www.netandco.net>).                   #
+#    Authors, Mathieu Lemercier, mathieu@netandco.net,                          #
+#             Franck Bret, franck@netandco.net                                  #
+#    Copyright (C) 2011 Akretion Benoît Guillot <benoit.guillot@akretion.com>   #
+#                                                                               #
+#    This program is free software: you can redistribute it and/or modify       #
+#    it under the terms of the GNU Affero General Public License as             #
+#    published by the Free Software Foundation, either version 3 of the         #
+#    License, or (at your option) any later version.                            #
+#                                                                               #
+#    This program is distributed in the hope that it will be useful,            #
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of             #
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              #
+#    GNU Affero General Public License for more details.                        #
+#                                                                               #
+#    You should have received a copy of the GNU Affero General Public License   #
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.      #
+#                                                                               #
+#################################################################################
+###################################################################################
+# Product Brand is an Openobject module wich enable Brand management for products #
+###################################################################################
+from . import informe_crm

BIN
__init__.pyc


+ 45 - 0
__openerp__.py

@@ -0,0 +1,45 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+
+{
+    'name': 'Informe de Iniciativas de Clientes',
+    'version': '1.1',
+    'category': 'CRM',
+    'sequence': 19,
+    'summary': 'Report Iniciativas de Clientes',
+    'description': """
+Informe de Iniciativas de Clientes
+==================================================
+
+Informe de Iniciativas de Clientes
+
+
+    """,
+    'author': 'Eiru/Sebastian Penayo',
+    'website': 'http://www.paraguayenlaweb.com',
+    'depends': ['base','crm'],
+    'data': [
+        'informe_crm.xml',
+    ],
+    'installable': True,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 0 - 0
informe_crm.py


BIN
informe_crm.pyc


+ 81 - 0
informe_crm.xml

@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data>
+
+         <report id="informe_crm"
+            model="crm.lead"
+            string="Listado de Iniciativas de Clientes"
+            report_type="qweb-pdf"
+            name="informes_crm.report_crm2"
+            file="informes_crm.report_crm2"
+         />
+
+<template id="report_crm2">
+    <t t-call="report.html_container">
+          <t t-call="report.external_layout">
+            <div class="page">
+					<style type="text/css">
+
+						.crm_tcab{
+                            font-size: 3mm;
+                            font-family: Arial, Helvetica, sans-serif;
+                        }
+						
+                        .crm_tbody{
+                            font-size: 2.8mm;
+							padding-left: 2cm;
+                            font-family: Arial, Helvetica, sans-serif;
+                        }
+                        
+						.logo1{
+                            width: 100%;
+                            top: 1.5cm;
+                         }
+
+					</style>
+			
+			  <h4 class="text-center">Listado de Iniciativas de Clientes</h4>
+               <table class="table table-bordered" width="100%">
+                <thead class="crm_tcab">
+                    <tr class="active">
+                        <th class="text-center" width="10%">Fecha</th>
+                        <th class="text-center" width="15%">Cliente</th>
+                        <th class="text-center" width="15%">Contacto q llamo</th>
+                        <th class="text-center" width="30%">Motivo de la Iniciativa</th>
+                        <th class="text-center" width="20%">Usuario</th>
+                        <th class="text-center" width="20%">Contacto</th>
+                        <th class="text-center" width="8%">Prioridad</th>
+                    </tr>
+				</thead>
+               <t t-foreach="docs" t-as="o">
+               <tbody class="crm_tbody">
+                          <td class="text-left">
+                                <span t-field="o.create_date" t-field-options='{"widget": "date"}'/>
+                          </td>
+                          <td class="text-left">
+                                <span t-field="o.partner_name"/>
+                          </td>
+                           <td class="text-left">
+                                <span t-field="o.contact_name"/>
+                          </td>
+                          <td class="text-left">
+                                <span t-field="o.name"/>
+                          </td>
+                          <td class="text-left">
+                                <span t-field="o.user_id"/> 
+                          </td>
+                          <td class="text-left">
+                                <span t-field="o.phone"/> 
+                          </td>
+                          <td class="text-left">
+                                <span t-field="o.priority"/> 
+                          </td>                  
+               </tbody>
+               </t>
+             </table>
+            </div>
+          </t>
+    </t>
+</template>
+</data>
+</openerp>

BIN
static/description/icon.png