Odoo Help

0
2 Answers
0
Avatar

Zbik

--Zbik--
7349
| 6 5 7
Lodz, Poland
--Zbik--


Zbik
4/26/19, 8:05 AM

In the qweb report, try like this one:

t-if="doc_model=='account.invoice'"

In the qweb template, if active_model exist in context:

t-if="request.context.get('active_model')=='account.invoice'"

2 Comments
Daniel Yi
4/26/19, 6:33 PM

Uncaught Error: QWeb2 - template['SearchView.extended_search.proposition']: Runtime Error: TypeError: Cannot read property 'context' of undefined

Zbik
4/27/19, 7:17 AM

Demonstrate exactly what you want to do.

0
Rishan Malaka
4/26/19, 10:50 AM

use this :

 <span t-esc="o._name"/>

also you can use this on if condition:

<t t-if='o._name == sale.order'>

</t>

1 Comment
Daniel Yi
4/26/19, 6:32 PM

Uncaught Error: QWeb2 - template['SearchView.extended_search.proposition']: Runtime Error: TypeError: Cannot read property '_name' of undefined

Ask a Question
Writer
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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now