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 can i remove language information print a qweb report

By
Bulgantamir
on 10/17/16, 4:20 AM 150 views

 add language button

this code is default module code website_report module

<xpath expr="//footer" position="replace">       

<ul class="list-inline js_language_selector mt16" t-if="(request and request.website_multilang and len(languages) &gt; 1) or (website and editable)">           

<li t-foreach="languages" t-as="lg">               

<a t-att-href="url_for(request.httprequest.path + '?' + keep_query(), lang=lg[0])"                   t-att-data-lang="lg[0]"                  

t-att-data-default-lang="editable and 'true' if website and lg[0] == website.default_lang_code else None">                    <t t-esc="lg[1].split('/').pop()"/>                </a>            </li>            <li groups="base.group_website_publisher">                <t t-set="url_return" t-value="url_for('', '[lang]') + '?' + keep_query()"/>                <a t-attf-href="/web#action=base.action_view_base_language_install&amp;website_id=#{website.id if website else ''}&amp;url_return=#{url_return}">                    <i class="fa fa-plus-circle"/>                    Add a language...
                </a>           

</li>       

</ul>   

</xpath>

0
shiva
On 10/17/16, 8:37 AM

 <template id="layout" inherit_id="website_report.layout" primary="True">   

        <xpath expr="//ul[@class='list-inline js_language_selector mt16']" position="replace">   

        </xpath>

</template>

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: 10/17/16, 4:20 AM
Seen: 150 times
Last updated: 10/17/16, 8:37 AM