Explorar el Código

Módulo para etiquetar se cambio medidas

SEBAS hace 5 meses
padre
commit
9ac486bb27
Se han modificado 1 ficheros con 12 adiciones y 2 borrados
  1. 12 2
      report/report_product_labels.xml

+ 12 - 2
report/report_product_labels.xml

@@ -30,10 +30,19 @@
                     <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;">
+														<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"/></h5>
+													            <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>
@@ -50,6 +59,7 @@
 													        </td>
 													    </tr>
 													</table>
+
                         </div>
                     </div>
                  </t>