Browse Source

Adicionar compania en el informe

Adrielso 8 years ago
parent
commit
9792c900e1

+ 2 - 0
models/report_stock_product.py

@@ -49,4 +49,6 @@ class report_stock_product(models.Model):
                 WHERE r.usage='internal' and  s.qty>0 and  pt.active=True
                 GROUP BY s.location_id, s.product_id, pt.product_brand_id, pt.product_genre_id, pt.factory_reference, pt.categ_id, pcc.id_parent)
 		""")
+
+
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

BIN
models/report_stock_product.pyc


+ 9 - 27
views/informe_stock_product_view.xml

@@ -1,13 +1,8 @@
 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
 	<data>
-		<report id="report_stock_product"
-            model="report.stock.product"
-            string="Listado General stock"
-            report_type="qweb-pdf"
-            name="report_stock_product.informe_stock_product_view"
-            file="report_stock_product.informe_stock_product_view"
-        />
+		<report id="report_stock_product" model="report.stock.product" string="Listado General stock" report_type="qweb-pdf"
+            name="report_stock_product.informe_stock_product_view" file="report_stock_product.informe_stock_product_view" />
 
 		<template id="informe_stock_product_view">
 			<t t-call="report.html_container">
@@ -18,54 +13,41 @@
 							font-size: 3mm;
 							font-family: Arial, Helvetica, sans-serif;
 							}
-
 							.crm_tbody{
 							font-size: 2.8mm;
 							font-family: Arial, Helvetica, sans-serif;
 							}
-
 							.logo1{
 							width: 100%;
 							top: 1.5cm;
 							}
-
 							.total1{
 							font-size: 2.8mm;
 							font-family: Arial, Helvetica, sans-serif;
 							}
-
 						</style>
 						<h4 class="text-center">Listado General de stock</h4>
-						<div class="logo1" />
-
+						<div class="logo"/>
 						<table class="table table-condensed">
 							<thead class="crm_tcab">
 								<tr class="active">
 									<th>Referencia</th>
 									<th>Producto</th>
+									<th>Compania</th>
 									<th class="text-right">Cantidad</th>
 								</tr>
 							</thead>
 							<t t-foreach="docs" t-as="o">
 							<tbody>
 									<tr>
-										<td>
-											<span t-field="o.factory_reference"/>
-										</td>
-										<td>
-											<span t-field="o.product_id"/>
-										</td>
-
-										<td class="text-right">
-											<span t-field="o.quantity"/>
-										</td>
-
+										<td> <span t-field="o.factory_reference"/> </td>
+										<td> <span t-field="o.product_id"/> </td>
+										<td> <span t-field="o.location_id"/> </td>
+										<td class="text-right"> <span t-field="o.quantity"/> </td>
 									</tr>
 							</tbody>
 							</t>
-							<tr>
-                <td colspan="3"></td>
-              </tr>
+							<tr> <td colspan="3"></td> </tr>
               <tr class="border-black">
                <td colspan="3">Total:</td>
 								<td class="text-right">