Pārlūkot izejas kodu

Agregar en catálogo la imagen de producto

Sebas 6 gadi atpakaļ
vecāks
revīzija
8e6a5225f2
1 mainītis faili ar 15 papildinājumiem un 6 dzēšanām
  1. 15 6
      catalogo_productos_bioelectric.xml

+ 15 - 6
catalogo_productos_bioelectric.xml

@@ -107,14 +107,19 @@
                         text-align: center;
                     }
                     .art-col3{
+                        width:1.3cm;
+                        text-align: center;
+                    }
+                    .art-col4{
                         padding-left: 0.3cm;
                         width:20cm;
                     }
-                    .art-col4{
+                    .art-col5{
                         padding-left: 0.3cm;
+                        text-align: left;
                         width:3.3cm;
                     }
-                    .art-col5{
+                    .art-col6{
                         width:3cm;
                         text-align: right;
                     }
@@ -162,6 +167,7 @@
                         <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;">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:20cm;overflow: auto; text-align: center;">Descripción del producto/servicio</th>
@@ -172,18 +178,21 @@
                             <t t-foreach="docs" t-as="o">
                                 <tbody class="sale_tbody">
                                     <td class="art-col1">
-                                          <span t-field="o.default_code"/>
+                                          <span t-field="o.image_small" t-field-options='{"widget": "image"}'/>
                                     </td>
                                     <td class="art-col2">
-                                          <span t-field="o.uom_id"/>
+                                          <span t-field="o.default_code"/>
                                     </td>
                                     <td class="art-col3">
-                                          <span t-field="o.name"/>
+                                          <span t-field="o.uom_id"/>
                                     </td>
                                     <td class="art-col4">
-                                          <span t-field="o.product_brand_id"/>
+                                          <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>
                                </tbody>