Sfoglia il codice sorgente

Agregar en presupuesto de venta la imagen del producto

Sebas 6 anni fa
parent
commit
03be43b3e0
1 ha cambiato i file con 17 aggiunte e 5 eliminazioni
  1. 17 5
      presupuesto_venta_bioelectric.xml

+ 17 - 5
presupuesto_venta_bioelectric.xml

@@ -131,27 +131,31 @@
                             height: 4.5cm;
                         }
                         .art-col1{
+                            width:1.3cm;
+                            text-align: center;
+                        }
+                        .art-col2{
                             width:3cm;
                             text-align: left;
                         }
-                        .art-col2{
+                        .art-col3{
 							padding-left: 0.7cm;
                             width:1cm;
                             text-align: center;
                         }
-                        .art-col3{
+                        .art-col4{
                             padding-left: 0.3cm;
                             width:9cm;
                         }
-                        .art-col4{
+                        .art-col5{
                             width:2.9cm;
                             text-align: right;
                         }
-                        .art-col5{
+                        .art-col6{
                             width:3cm;
                             text-align: right;
                         }
-                        .art-col6{
+                        .art-col7{
                             width:4.2cm;
                             text-align: right;
                         }
@@ -186,6 +190,10 @@
                             width: 100%;
                             top: 0px;
                         }
+                        .Your_custom_class > jpg {
+                            height: 30px;
+                            width: 30px;
+                        }
 
 
                     </style>
@@ -256,6 +264,7 @@
                             <table class="table table-condensed table-bordered">
                                 <thead>
                                     <tr>
+                                        <th class="text-center">Imagen</th>
                                         <th class="text-center">Cantidad</th>
                                         <th class="text-center">Medida</th>
                                         <th class="text-center">Descripción de material/servicio</th>
@@ -268,6 +277,9 @@
                                    <t t-set="valor_mat" t-value="0"/>
                                    <t t-set="valor_mo" t-value="0"/>
                                     <tr t-foreach="o.order_line" t-as="l">
+                                        <td class="art-col1">
+                                              <span t-field="l.product_id.image_small" t-field-options='{"widget": "image"}' class="Your_custom_class"/>
+                                        </td>
                                         <td class="text-center">
                                             <span t-esc="'%.0f'%l.product_uom_qty"/>
                                         </td>