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

Odoo Sale Report PDF Custom Language

By
Vincent Monbaron
on 1/8/15, 11:00 AM 2,225 views

Hi everybody,

I want to change some translation (English to French) on my Odoo 8 server for the sale module.

I have for example the Quantity in English but not the disc.% The price is right in french.

How I can edit that ?

 

Thanks in advance

Vincent

Hi Vincent! Have a look at another post where I explained quite a lot about translations. See https://www.odoo.com/forum/help-1/question/how-to-translate-terms-67357

Yenthe
on 1/8/15, 11:04 AM

Hello, Thank you but I can't find the "Application Terms" where is that ?

Vincent Monbaron
on 1/8/15, 11:06 AM

Its under settings. If you don't have it you still need to activate the technical features. Go to settings > users, open up the administrator account (or yours) and check on technical features.

Yenthe
on 1/8/15, 12:14 PM

Ah nice tricks :-) thank you ! I see now the application terms :-) Ok but now how I can see or search the "Quantity" field on the pdf sale.report_saleorder ? for change the name from Quantity to quantité ?

Vincent Monbaron
on 1/9/15, 2:17 AM

Simply do a search for "Quantity" under your translations and find the correct record. You'll then see there is a translation for it (probably also "Quantity" at the moment). Just modify that to Quantité, save it and then synchronize your translations!

Yenthe
on 1/9/15, 2:21 AM

I find Quantity but not the right I think, I check all the values but nothing change the quantity or a other on the rapport sale.report_sale order. Any idea why ?

Vincent Monbaron
on 1/9/15, 3:23 AM

@Vincent hmm yes it is quite tricky. You're probably translating the wrong values and/or have the wrong record ID for the translation. The thing is you need to match it exactly. Your best bet is to search a translation that is on your report, then duplicate this one and modify it too the original source+translation you'd like. Another alternative is to find the QWeb's record ID and then write a new translation. Let me know if you get this fixed or not.. If it doesn't I'll write out a full answer which describes how to do it.

Yenthe
on 1/9/15, 3:28 AM

I think I need you for a full answer :-) sorry

Vincent Monbaron
on 1/9/15, 4:46 AM

Hello,

 

I’m back at office right now, I go check that J

 

thanks

Vincent

 

 

Meilleures salutations

Mit freundlichen Grüssen

 

<img width="160" height="37" id="Image_x0020_1" src="cid:image001.jpg@01D02C1B.9B353900" alt="iteliumC76a-A03aT03a-Z_big">

 

Vincent Monbaron

[ CEO System Engineer ]

 

itelium Sàrl

Gurzelenstrasse 31

2502 Biel/Bienne

 

Tel:                         +41 32 510 05 50

Fax:                        +41 32 341 13 43

Mobile:                   +41 78 638 74 32

Email:                     vincent.monbaron@itelium.ch

Homepage:            http://www.itelium.ch

 

De : Yenthe spam [mailto:yenthespam@gmail.com]
Envoyé : vendredi 9 janvier 2015 14:27
À : Vincent Monbaron
Objet : Re: Odoo Sale Report PDF Custom Language

 

Hey

I've posted a full answer about this :)
https://www.odoo.com/forum/1/question/72635

 

2015-01-09 10:53 GMT+01:00 Vincent Monbaron <vincent.monbaron@mail.odoo.com>:

Off course ! thank you for the help ! :-)

--
Vincent Monbaron
Sent by Odoo Inc. using Odoo about Forum Post Odoo Sale Report PDF Custom Language

 

--
Yenthe
Sent by Odoo S.A. using Odoo about Forum Post Odoo Sale Report PDF Custom Language

Vincent Monbaron
on 1/9/15, 8:50 AM

Off course ! thank you for the help ! :-)

Vincent Monbaron
on 1/9/15, 8:57 AM

No problem Vincent! Let me know if it works out. If it does or if this answer has helped you a lot consider upvoting / accepting the answer please!

Yenthe
on 1/9/15, 8:59 AM

Hello, So that's work !! :-) many many thanks for your help !!!!!!

Vincent Monbaron
on 1/9/15, 10:04 AM

Awesome, that is great to hear! No problem Vincent and best of luck.

Yenthe
on 1/9/15, 10:11 AM

Thanks :-)

Vincent Monbaron
on 1/9/15, 10:13 AM
1

Yenthe

--Yenthe--
6686
| 7 7 8
Turnhout, Belgium
--Yenthe--

My Odoo blog: http://www.odoo.yenthevg.com/

My Twitter: https://twitter.com/Yenthe666

Yenthe
On 1/9/15, 6:38 AM


Hi Vincent

To be absolutely sure you are doing the translations on the correct lines you should first find out the correct record id.
To do this first go to Settings > Reports > Reports.


Next search for the report where you want to make / modify translations for. For example invoice:


Open up this record and you'll see an option 'Search associated QWeb views'. Click on it:

You will now see two lines, no matter which report you open. The first record fetches the user his language and is irrelevant. Open up the second one:

You will now see at the right top a field you can click on which is named "Model Data". Click on it.
A new window pops up and this is finally showing you the record id.. Phew.

This number (510) is the ID where the translations are attached to. Now that you know this go to settings > Application Terms > Translated terms. Now open up the advanced search function (small arrow down) and search on your record id (510 in my case):


You will now see a filtered list of translations which only is used by your current report. This means if there is already a record in English for the field you are searching to translate (Quantity) you can modify the translation value. If there is no record for your item yet just make a new one. You're best of to copy an existing one and modify this as the resource ID is already filled in then. Simply give in the English term and the wanted translation. For example:

Finally click on Settings > Application Terms > Synchronize Terms and synchronize your language. The report will now show the new translations!
NOTE: If you do this for an invoice you will only see the modifications when you make a new invoice after synchronizing since an invoice is never allowed to change due to legal actions.

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

2 follower(s)

Stats

Asked: 1/8/15, 11:00 AM
Seen: 2225 times
Last updated: 3/16/15, 8:10 AM