Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2865 Vistas

Hi

  How to compute sum for a column in Qweb?

Avatar
Descartar
Mejor respuesta

Try like this:

<t t-set="foo" t-value="12345"/>
<t t-foreach="o.invoice_line" t-as="l">
  <t t-set="foo" t-value="foo + l.quantity"/>
  <t t-esc="foo"/>
</t>

Warning! Issue!

Avatar
Descartar