Odoo Help

Welcome!

This community 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.

0

How works Qweb attribute t-ignore?

By
zbik
on 2/23/15, 6:38 AM 1,456 views

Can someone tell me how it works? I have not found the description in the documentation.

Examples:

<link rel='stylesheet' href='/website/static/src/css/bootswatch/amelia.min.css' t-ignore="true"/>

<t t-ignore="true">
....
</t>

<div class="pull-right" t-ignore="true" t-if="not editable">
...
</div>

 

 

No one knows?

zbik
on 2/24/15, 6:41 AM

The "t-ignore" attribute keeps the elements from inheriting the "branding" of the parent when you enable inherited branding. Branding being the "data-oe-*" and "t-*" attributes. Seems to be used in keeping track of where tags get moved to. See example of usage in report/models/report.py See also ir_qweb.py, and ir_ui_view.py See addons/base/tests/test_views.py, Hope that helps.

john5000
on 2/24/15, 11:23 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/23/15, 6:38 AM
Seen: 1456 times
Last updated: 3/16/15, 8:10 AM