Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2870 Tampilan

Hi

  How to compute sum for a column in Qweb?

Avatar
Buang
Jawaban Terbai

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
Buang