Skip to Content
Menu
This question has been flagged
1 Odpoveď
2881 Zobrazenia

Hi

  How to compute sum for a column in Qweb?

Avatar
Zrušiť
Best Answer

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
Zrušiť