跳至內容
選單
此問題已被標幟
1 回覆
2880 瀏覽次數

Hi

  How to compute sum for a column in Qweb?

頭像
捨棄
最佳答案

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!

頭像
捨棄