Odoo Help

0

0
1 Answer
0
Avatar

Hilar AK สวิตเซอร์แลนด์

--Hilar AK--
15642
| 6 6 11
สวิตเซอร์แลนด์
--Hilar AK--
Experienced Odoo / Python Developer with a demonstrated history of working in the information technology and services industry with 3.5+years of experience. Skilled in Python, PostgreSQL, SQL, HTML, JavaScript. Strong engineering professional with a Bachelor of Technology (BTech) focused on Computer Science from the College of Engineering Munnar.

 Blogs:-

https://medium.com/@hilarak
        https://hilarlive.wordpress.com/
 StackOverflow:
       https://stackoverflow.com/users/7561347/burmese-pythis-hilar-ak

Quora:
    

            https://www.quora.com/profile/Hilar-Ak-1

Github:


https://github.com/hilarak



Hilar AK สวิตเซอร์แลนด์
14/5/19 03:44

Here I can give you an example where odoo uses the selection for Database Selector.

<t t-foreach="databases" t-as="db">
<option t-att-selected="'selected' if db == request.db else None">
<t t-esc="db"/>
</option>
</t>

Here Iterating through databases object and DB is the value of the option.

Ask a Question
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