Odoo Help

1

0
4 Answers
2
Avatar

Anil R. Kesariya (AKE)

--Anil R. Kesariya (AKE)--
6589
| 8 7 10
Rajkot, India
--Anil R. Kesariya (AKE)--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.


Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66


Anil R. Kesariya (AKE)
9/11/15, 12:35 AM

Philip,

You can use python code inside t-esc template.

Which will help you to sort your data.

try this:

<t t-esc="docs.sort()"/>

or if it does not work than you can use parser to do any changes related to your data runtime.

Hope this might help you.

Rgds,

Anil.



0
Mohit Bhalodia
7/26/17, 2:28 AM

For sorting records, you don't need to set new list. It can be directly done with loop statement like this,

<t t-foreach="doc.field.sorted(key=lambda r: r.year)" t-as="item">
     <t t-esc="item"/> <br/>
     <t t-esc="item.year"/>
     <br/> <br/> <br/>
</t>


I think this will work for you.

0
Didier Hernandez M
10/12/17, 6:37 PM
How i can achieve wholes the doc.fields in order to know what field to show in qweb report?
Ask a Question
Writer
Tags
Keep Informed
1 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.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now