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

Why a report has a wrong traduction ?

By
PY
on 6/18/14, 4:21 AM 636 views

Hi !

When I print an invoice, in French, "Your reference" should be "Votre référence". Instead, the printing shows "Description".

I've checked all the traduction files that contain "Your reference", and all of them were correct. I've also tried updating the base, account and sales modules, without success.

Anyone knows where "Description" comes from, and how to fix this ?

Thanks.

0
PY
On 6/20/14, 3:27 AM

Ok, so it seems that the cell `Description` is filled with the `account.invoice.name` value, which, I think, can be either the `account.invoice.reference`, or another field. That's a little confusing, but I've sorted it out. Now, I think I'll put another cell to hold the `account.invoice.reference` field, but that's not the subject of this post.

PS:

I've finally found the right `.rml` file in `account/report/account_print_invoice.rml`.

0

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 6/19/14, 7:20 AM

Maybe some old translation file is still stuck in the database. we have had similair issues with translations as well. Try to look for the translation at: Settings --> Translations --> Application terms --> Translated terms Look for "Description" in the "Translation Value" column, to see if any record that matches that has something like "Your reference" as its source value. ---- If that does not work, open the source of the report itself and make sure the field that is showing is the correct field.

I accidentally removed your comment PY, sorry. As an answer, you should look for the RML-file and/or the parser, in the way of the py file. The location should be something like "addons/account/report".

Ludo - Neobis
on 6/19/14, 7:22 AM
0

Leonardo Donelli

--Leonardo Donelli--
1040
| 5 4 8
Cave, Italy
--Leonardo Donelli--

Physics student and part-time developer.

Leonardo Donelli
On 6/18/14, 4:50 AM

Check that the PDF is being recreated instead of openerp taking a previously generated copy from the database. You can force recreation in various ways:

  • by going into Settings -> Actions -> Reports -> Search for invoice -> Select the correct one -> Uncheck "Reload from Attachment".
  • by deleting the saved PDF record in the database in the table ir_attachment (`DELETE FROM ir_attachment WHERE res_model = 'account.invoice'` to delete all of them)

It doesn't work.

PY
on 6/18/14, 5:47 AM

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: 6/18/14, 4:21 AM
Seen: 636 times
Last updated: 3/16/15, 8:10 AM