Prechádzať zdrojové kódy

Agrega en la impresión del catálogo la secuencia y cantudad disponible.

sebas 4 rokov pred
rodič
commit
5498050649

+ 0 - 0
__init__.pyc


+ 0 - 0
catalogo_productos_bioelectric.pyc


+ 46 - 29
catalogo_productos_bioelectric.xml

@@ -104,11 +104,11 @@
                         text-align: center;
                     }
                     .art-col2{
-                        width:1.3cm;
+                        width:2.3cm;
                         text-align: center;
                     }
                     .art-col3{
-                        width:1.3cm;
+                        width:2.3cm;
                         text-align: center;
                     }
                     .art-col4{
@@ -121,15 +121,24 @@
                         width:3.3cm;
                     }
                     .art-col6{
-                        width:3cm;
+                        width:4cm;
+                        text-align: right;
+                    }
+                    .art-col7{
+                        width:4cm;
+                        text-align: right;
+                    }
+                    .art-col8{
+                        width:4cm;
                         text-align: right;
                     }
 
                 </style>
 
-                   <div class="pagina">
+                   <div class="pagina" style="margin-left:15mm !important; margin-right:-5mm !important;">
                        <div class="logo"> </div>
-                       <div style="padding-left:1.5cm;padding-right:0.5cm;">
+                       <!-- <div style="padding-left:0.5cm;padding-right:0.5cm;"> -->
+                       <!-- <table style="border-spacing:0;margin-bottom:0;height: 187px; width: 319px; border: 2px solid black;" class="table"> -->
                         <div class="row">
                             <div class="col-xs-4">
                                <tr>
@@ -167,46 +176,54 @@
                                <h3><strong>CATÁLOGO DE SERVICIOS Y PRODUCTOS</strong></h3>
                            </div>
                            <div class="divisoria"> </div>
-
+                        <t t-set="i" t-value="1" />
                         <table class="table table-condensed table-bordered">
                             <thead>
                                <tr>
+                                    <th style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">Orden</th>
                                     <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;">Referencia</th>
-                                    <th style="font-size:10px;font-family: Arial;width:1.3cm;overflow: auto; text-align: center;">Medida</th>
+                                    <th style="font-size:10px;font-family: Arial;width:2.3cm;overflow: auto; text-align: center;">Referencia</th>
+                                    <th style="font-size:10px;font-family: Arial;width:2.3cm;overflow: auto; text-align: center;">Medida</th>
                                     <th style="font-size:10px;font-family: Arial;width:20cm;overflow: auto; text-align: center;">Descripción del producto/servicio</th>
                                     <th style="font-size:10px;font-family: Arial;width:3,3cm;overflow: auto; text-align: center;">Marca</th>
-                                    <th style="font-size:10px;font-family: Arial;width:3cm;overflow: auto; text-align: center;">Prec. Venta</th>
+                                    <th style="font-size:10px;font-family: Arial;width:4cm;overflow: auto; text-align: center;">Prec. Venta</th>
+                                    <th style="font-size:10px;font-family: Arial;width:4cm;overflow: auto; text-align: center;">Cantidad</th>
                                </tr>
                             </thead>
                             <t t-foreach="docs" t-as="o">
                                 <tbody class="sale_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.uom_id"/>
-                                    </td>
-                                    <td class="art-col4">
-                                          <span t-field="o.name"/>
-                                    </td>
-                                    <td class="art-col5">
-                                          <span t-field="o.product_brand_id"/>
-                                    </td>
-                                    <td class="art-col6">
-                                          <span t-field="o.list_price"/>
-                                    </td>
+                                  <td class="art-col1">
+                                      <span t-esc="i"/>
+                                      <t t-set="i" t-value="i+1"/>
+                                  </td>
+                                  <td class="art-col2">
+                                        <span t-field="o.image_small" t-field-options='{"widget": "image"}'/>
+                                  </td>
+                                  <td class="art-col3">
+                                        <span t-field="o.default_code"/>
+                                  </td>
+                                  <td class="art-col4">
+                                        <span t-field="o.uom_id"/>
+                                  </td>
+                                  <td class="art-col5">
+                                        <span t-field="o.name"/>
+                                  </td>
+                                  <td class="art-col6">
+                                        <span t-field="o.product_brand_id"/>
+                                  </td>
+                                  <td class="art-col7">
+                                        <span t-field="o.list_price"/>
+                                  </td>
+                                  <td class="art-col8">
+                                        <span t-field="o.qty_available"/>
+                                  </td>
                                </tbody>
                             </t>
-                       </table>
 
+                       </table>
                        <th class="text-left">Fecha y hora del listado: </th><span t-esc="context_timestamp(datetime.datetime.now()).strftime('%d-%m-%Y %H:%M')"/>
 
                      </div>
-                </div>
            </div>
 
         </t>