Odoo Help


3 Answers

Jérémy Kersten (jke) Belgium

--Jérémy Kersten (jke)--

| 4 4 11
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013.

He is now the Team Leader of the Website Team and support of our own website odoo.com.

Jérémy Kersten (jke) Belgium
1/30/15, 9:02 AM


A discussion exits on github, you can check here https://github.com/odoo/odoo/issues/4461#issuecomment-72199618 the explication of Odony to know how to do it easily...

The propagation has been added since commit 4a698da (https://github.com/odoo/odoo/commit/4a698da) but in most case it should not be used to make sum, ... Qweb is for templating... 


Have a good day









Stephen Mack Chile
1/30/15, 9:06 AM

Jérémy you are too fast for me today. Thanks for posting!

Jérémy Kersten (jke) Belgium
1/30/15, 9:08 AM

You too :) For Q74531 Thanks for your work on this forum !

Abdullah Sofan Yemen
12/29/14, 11:47 AM

Thanks for that. But this bug seems to defeat a major purpose of the loop function in Qweb.

Martin Pishpecki Netherlands
12/29/14, 3:08 AM

Ok foud a workaround.

In my case I wanted to check if one ore more products belongs to a group. If the condiditon was true a div containig table and data is visible, if not its hidden. So I made something like this:

<div t-if=" True in [z.product_id.categ_id.name == 'WiMax' for z in o.order_line]" >...(your content goes here ).</div>

You can make inline labda function to loop over "o.order_line" and chek if "o.order_line.product_id.categ_id.name" (this is the category name) of each line is the category name you are looking for. This will result in list ex. [False, False, False, False, True]. So "True in [...]" evaluates if there is True in the list.  Hope you can use the same logic in your problem.

Abdullah Sofan Yemen
12/29/14, 11:45 AM

Thanks for that. Have you reported this bug?

Martin Pishpecki Netherlands
12/30/14, 2:25 AM

No problem. I have not reported the bug. Where do I report this?

Martin Pishpecki Netherlands
12/30/14, 2:44 AM

Ok. Reported on https://github.com/odoo/odoo/issues?q=is%3Aopen+is%3Aissue. If that is the right place. Regards.

Ask a Question
Keep Informed
3 follower(s)
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.

Odoo Training Center

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

Test it now