Odoo Help


Translation in pdf file when clicking print button in sale/quotation order

Tomasz Twardowski
on 6/7/14, 4:01 PM 1,340 views


how to make translation in pdf file when clicking print button in sale/quotation order  generating  from :


for example field "Salesperson:" :

 <div t-if="o.user_id.name" class="col-xs-3">
                    <p t-field="o.user_id.name"/>

I've added record in translations --> application terms --> translated terms

Source: Salesperson: 

Translation Value: Sprzedawca

Translated Field: addons/sale/views/report_saleorder.xml

Language: Polski

Type: Code

and after that nothing happened .

I've changed "Type"  field to Code, View, Report/Template  and also no reaction.

What should I do .

Thanks for help in advance



Daniel Barthels
On 6/9/14, 6:42 AM

You can render the document in the partner's language by calling:

            """Helper used when a report should be translated into the associated
            partner's lang.

            <t t-foreach="doc_ids" t-as="doc_id">
                <t t-raw="render_doc(doc_id, doc_model, 'module.templatetocall')"/>

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 6/7/14, 4:01 PM
Seen: 1340 times
Last updated: 3/16/15, 8:10 AM