Skip to Content
Menú
This question has been flagged
2 Respostes
942 Vistes

I try to generate my first Invoice with Odoo in german. 

everything is translated to german except the "delivery date" (Lieferdatum) field.
Can i translate this field by my self? 


Avatar
Descartar
Autor Best Answer

I have tried my luck for many hours now, but unfortunately without success. I have found the delivery date string in the "accouting" module. But the correct translation is also given here.
Unfortunately, I don't know why it is not used.

First founded Translation

account

model

ir.model.fields,field_description

account.field_account_move__delivery_date

Delivery Date

Liefertermin


Second foundet Translation:

account

model_terms

ir.ui.view,arch_db

account.report_invoice_document

Delivery Date:

Lieferdatum:

I found also the Translation für den PDF generation. But it dont work.

Any other ideas?


Avatar
Descartar

What is the purpose behind complicating translations in v16?

Best Answer

Hi,
Activate the German language,


1) Go to Settings ‣ Translations ‣ Import / Export ‣ Export TranslationsLanguage: Germanselect the PO File format
select your moduleclick Export and download the file.
2) Add your translation terms to the downloaded file. i.e. msgstr "" section depending on your translation language
4) create an i18n folder under your module and add po file in it.

For editing the delivery date, follow the code
#. module: sale_management
#: model:ir.model.fields,field_description:sale_management.field_delivery_date
msgid "Delivery Date"
msgstr "Liefertermin"
Replace 'sale_management' with your module name and '_delivery_date' with the appropriate field name for translation in the code.

For more details, refer to the blog:
https://www.cybrosys.com/blog/configure-translation-to-custom-module-add-new-language-in-odoo-16

Hope it helps

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de jul. 25
544
2
de jul. 25
692
1
de jul. 25
1746
3
d’abr. 25
1768
3
d’abr. 25
2802