跳至内容
菜单
此问题已终结
1 回复
2874 查看

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!

形象
丢弃