Odoo Help

1

0
4 الإجابات
2
الصورة الرمزية

Anil R. Kesariya (AKE) الهند

--Anil R. Kesariya (AKE)--
6604
| 8 7 10
Rajkot, الهند
--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) الهند
11‏/9‏/2015 12:35 ص

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 الهند
26‏/7‏/2017 2:28 ص

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 كوستاريكا
12‏/10‏/2017 6:37 م
How i can achieve wholes the doc.fields in order to know what field to show in qweb report?
اطرح سؤالاً
Writer
الوسوم
Keep Informed
1 متابعين
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