Jelajahi Sumber

Módulo para etiquetar se cambio medidas

SEBAS 5 bulan lalu
induk
melakukan
f87dd1ee98
2 mengubah file dengan 26 tambahan dan 5 penghapusan
  1. 2 2
      report/report_product_labels.xml
  2. 24 3
      report/report_product_labels_wizard.xml

+ 2 - 2
report/report_product_labels.xml

@@ -35,7 +35,7 @@
 												        <td colspan="2" style="margin: 0; padding: 0;">
 												            <h5 style="margin: 0; padding: 0;">
 												                <span t-field="product.display_name"/>
-												                
+
 												            </h5>
 												        </td>
 												    </tr>
@@ -47,7 +47,7 @@
 														<tr style="border: 1px solid black; margin: 0; padding: 0;">
 															<td colspan="2" style="margin: 0; padding: 0;">
 																	<span t-if="product.ean13">
-																			<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', product.ean13, 600, 30)" style="margin-top: 3px; width:70mm; height:25mm; margin: 0; padding: 0;"/>
+																			<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', product.ean13, 600, 20)" style="margin-top: 3px; width:70mm; height:20mm; margin: 0; padding: 0;"/>
 																			<h5 style="margin: 0; padding: 0;"><span t-esc="product.ean13" /></h5>
 																	</span>
 															</td>

+ 24 - 3
report/report_product_labels_wizard.xml

@@ -23,9 +23,30 @@
                             <div class="page">
                                 <div class="oe_structure"/>
                                 <div class="row">
-                                    <table style="width: 100%; border: 1px solid black; text-align: center;">
+                                      <table style="width: 100%; border: 1px solid black; text-align: center; border-collapse: collapse; margin: 0; padding: 0;">
+            												    <tr>
+            												        <td colspan="2" style="margin: 0; padding: 0;">
+            												            <h5 style="margin: 0; padding: 0;">
+            												                <span t-field="product.display_name"/>
 
-                                        <tr style="border: 1px solid black;">
+            												            </h5>
+            												        </td>
+            												    </tr>
+            												    <tr>
+            												        <td colspan="2" style="margin: 0; padding: 0;">
+            												            <h5 style="margin: 0; padding: 0;"><span>Precio: </span><span t-field="product.lst_price" /></h5>
+            												        </td>
+            												    </tr>
+            														<tr style="border: 1px solid black; margin: 0; padding: 0;">
+            															<td colspan="2" style="margin: 0; padding: 0;">
+            																	<span t-if="product.ean13">
+            																			<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', product.ean13, 600, 20)" style="margin-top: 3px; width:70mm; height:20mm; margin: 0; padding: 0;"/>
+            																			<h5 style="margin: 0; padding: 0;"><span t-esc="product.ean13" /></h5>
+            																	</span>
+            															</td>
+            													</tr>
+
+                                        <!-- <tr style="border: 1px solid black;">
                                             <td colspan="2">
                                                 <h5><span t-field="line.product_id.name"/></h5>
                                             </td>
@@ -42,7 +63,7 @@
                                                     <h5><span t-esc="line.product_id.ean13" /></h5>
                                                 </span>
                                             </td>
-                                        </tr>
+                                        </tr> -->
                                     </table>
                                 </div>
                             </div>