Odoo Help

0

Qweb

By
Umashankar Subramani
on 1/27/15, 3:44 AM 622 views

Hi

  How to compute sum for a column in Qweb?

0
Zbik
On 1/27/15, 4:29 AM

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!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 1/27/15, 3:44 AM
Seen: 622 times
Last updated: 3/16/15, 8:10 AM