瀏覽代碼

Agregar en el informe de producto la imagen de producto

Sebas 6 年之前
當前提交
b2013ac982
共有 7 個文件被更改,包括 182 次插入0 次删除
  1. 19 0
      __init__.py
  2. 二進制
      __init__.pyc
  3. 41 0
      __openerp__.py
  4. 0 0
      informe_productos.py
  5. 二進制
      informe_productos.pyc
  6. 122 0
      informe_productos.xml
  7. 二進制
      static/description/icon.png

+ 19 - 0
__init__.py

@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    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/>.
+#
+##############################################################################
+
+import informe_productos

二進制
__init__.pyc


+ 41 - 0
__openerp__.py

@@ -0,0 +1,41 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#    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 Productos',
+    'version': '1.1',
+    'category': 'Sale',
+    'sequence': 19,
+    'summary': 'Report Productos',
+    'description': """
+Informe de Productos
+==================================================
+
+Informe de Productos
+
+
+    """,
+    'author': 'Eiru/Sebastian Penayo',
+    'website': 'http://www.eiru.com.py',
+    'depends': ['base','sale'],
+    'data': [
+        'informe_productos.xml',
+    ],
+    'installable': True,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 0 - 0
informe_productos.py


二進制
informe_productos.pyc


+ 122 - 0
informe_productos.xml

@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+<data>
+        <report
+            id="action_report_productos"
+            string="Listado General de Productos"
+            model="product.template"
+            report_type="qweb-pdf"
+            name="informe_productos.report_productos1"
+            file="informe_productos.report_productos1"
+	    />
+  <template id="report_productos1">
+    <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;
+                        }
+
+                        .veh_tbody{
+                            font-size: 2.8mm;
+                            font-family: Arial, Helvetica, sans-serif;
+                        }
+                        .art-col1{
+                            width:1.3cm;
+                            text-align: center;
+                        }
+                        .art-col2{
+                            width:1.3cm;
+                            text-align: center;
+                        }
+                        .art-col3{
+                            width:1.3cm;
+                            text-align: center;
+                        }
+                        .art-col4{
+                            width:1.3cm;
+                            text-align: center;
+                        }
+                        .art-col5{
+                            padding-left: 0.3cm;
+                            text-align: left;
+                            width:20cm;
+                        }
+                        .art-col6{
+                            padding-left: 0.3cm;
+                            text-align: right;
+                            width:3.3cm;
+                        }
+                        .art-col7{
+                            width:3cm;
+                            text-align: right;
+                        }
+                        .taxtotal{
+                            font-size: 2.8mm;
+                        }
+						.logo1{
+                            width: 100%;
+                            top: 0.5cm;
+                         }
+
+				</style>
+			   <h4 class="text-center">Listado de Productos</h4>
+               <div class="logo1"> </div>
+               <table class="table table-bordered">
+                <thead class="crm_tcab">
+                    <tr class="active">
+                        <th style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">Imagen</th>
+                        <th style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">Codigo Ref.</th>
+                        <th style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">Cod Barra</th>
+                        <th style="font-size:10px;font-family: Arial;width:20cm;overflow: auto; text-align: center;">Descripcion</th>
+                        <th style="font-size:10px;font-family: Arial;width:3.3cm;overflow: auto; text-align: center;">Categoria</th>
+                        <th style="font-size:10px;font-family: Arial;width:3cm;overflow: auto; text-align: center;">Precio Costo</th>
+                        <th style="font-size:10px;font-family: Arial;width:2.8cm;overflow: auto; text-align: center;">Precio Venta</th>
+                    </tr>
+                </thead>
+               <t t-foreach="docs" t-as="o">
+                <tbody class="veh_tbody">
+                    <td class="art-col1">
+                        <span t-field="o.image_small" t-field-options='{"widget": "image"}'/>
+                    </td>
+                    <td class="art-col2">
+                        <span t-field="o.default_code"/>
+                    </td>
+                    <td class="art-col3">
+                        <span t-field="o.ean13"/>
+                    </td>
+                     <td class="art-col4">
+                        <span t-field="o.name"/>
+                     </td>
+                      <td class="art-col5">
+                            <span t-field="o.categ_id.name"/>
+                      </td>
+                       <td class="art-col6">
+                            <span t-field="o.standard_price"/>
+                      </td>
+                      <td class="art-col7">
+                            <span t-field="o.list_price"/>
+                      </td>
+                    <!--       <td class="text-right">
+                                <span t-field="o.qty_available"/>
+                          </td>    -->
+                </tbody>
+               </t>
+<!--                 <tr> -->
+<!--                    <td colspan="7"></td>
+                   </tr>
+                   <tr class="border-black">
+						<td colspan="2">Total:</td>
+						<td class="text-right">
+                            <t t-set="taxtotal" t-value="sum([x.qty_available for x in docs])"/>
+                        </td>
+                   </tr> -->
+             </table>
+            </div>
+          </t>
+    </t>
+  </template>
+</data>
+</openerp>

二進制
static/description/icon.png