Browse Source

Módulo para etiquetar se cambio medidas

SEBAS 5 months ago
parent
commit
d80dc34091
1 changed files with 27 additions and 28 deletions
  1. 27 28
      report/report_product_labels.xml

+ 27 - 28
report/report_product_labels.xml

@@ -30,36 +30,35 @@
                     <div class="page">
                         <div class="oe_structure"/>
                         <div class="row">
-														<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.name"/>
-													                <t t-set="variants">
-													                    <t t-foreach="product.attribute_value_ids" t-as="attr">
-													                        <t t-esc="attr.name"/>
-													                        <t t-if="not loop.last">, </t>
-													                    </t>
-													                </t>
-													                <t t-if="product.attribute_value_ids">(<t t-esc="variants" />)</t>
-													            </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, 30)" style="margin-top: 3px; width:70mm; height:25mm; margin: 0; padding: 0;"/>
-													                <h5 style="margin: 0; padding: 0;"><span t-esc="product.ean13" /></h5>
-													            </span>
-													        </td>
-													    </tr>
+													<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.name"/>
+												                <t t-if="product.attribute_value_ids">
+												                    (
+												                    <t t-foreach="product.attribute_value_ids" t-as="attr" t-esc="attr.name"/>
+												                    )
+												                </t>
+												            </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, 30)" style="margin-top: 3px; width:70mm; height:25mm; margin: 0; padding: 0;"/>
+																			<h5 style="margin: 0; padding: 0;"><span t-esc="product.ean13" /></h5>
+																	</span>
+															</td>
+													</tr>
 													</table>
 
+
                         </div>
                     </div>
                  </t>