This question has been flagged
1 Reply
2795 Views

Hi,

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

addons/sale/view/report_saleorder.xml

for example field "Salesperson:" :

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

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

 

 

Avatar
Discard
Best Answer

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')"/>
            </t>

Avatar
Discard