İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2872 Görünümler

Hi

  How to compute sum for a column in Qweb?

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç