Browse Source

Impresión nota remision retocado

Sebas 5 years ago
parent
commit
e6a2986022
1 changed files with 5 additions and 5 deletions
  1. 5 5
      nota_remision_print.xml

+ 5 - 5
nota_remision_print.xml

@@ -388,11 +388,11 @@
                         <tbody>
                             <t t-foreach="o.nota_line" t-as="i">
                                 <tr>
-                                    <td><span t-field="i.name"/></td>
+                                    <td><span t-field="i.product_id.name"/></td>
                                     <td><span t-esc="'%.0f'%i.product_uom_qty"/></td>
-                                    <td><span t-esc="'{0:,.0f}'.format(i.price_unit)"/></td>
+                                    <td><span t-esc="'{0:,.0f}'.format(i.price_unit).replace(',', '.').replace(',', '.')"/></td>
                                     <td><span t-field="i.discount"/> %</td>
-                                    <td align="right"><span t-esc="'{0:,.0f}'.format(i.price_subtotal)"/></td>
+                                    <td align="right"><span t-esc="'{0:,.0f}'.format(i.price_subtotal).replace(',', '.')"/></td>
                                 </tr>
                             </t>
                             <tr>
@@ -401,12 +401,12 @@
                                 <td><strong><span t-esc="can_total"/></strong></td>
                                 <td colspan="2" align="right"><strong>Totales</strong></td>
                                 <t t-set="suma" t-value="sum([x.price_subtotal for x in o.nota_line])"/>
-                                <td align="right"><strong><span t-esc="suma" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/></strong></td>
+                                <td align="right"><strong><span t-esc="'{0:,.0f}'.format(int(suma)).replace(',', '.')"/></strong></td>
                             </tr>
                         </tbody>
                     </table>
                   </div>
-                    <p>Recibí en buenas condiciones la cantidad de <strong><span t-esc="int(cant_total)"/></strong> mercaderías por la suma de <strong><span t-esc="suma" t-esc-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/></strong>, y caso hubiera algún daño en la
+                    <p>Recibí en buenas condiciones la cantidad de <strong><span t-esc="'{0:,.0f}'.format(int(cant_total)).replace(',', '.')"/></strong> mercaderías por la suma de Gs. <strong><span t-esc="'{0:,.0f}'.format(int(suma)).replace(',', '.')"></span></strong>, y caso hubiera algún daño en la
                         devolución de las mismas me comprometo a abonar el importe convenido por la empresa <strong><span t-field="o.partner_company"/></strong>.
                     </p>
                 </div>