跳至內容
選單
此問題已被標幟
2 回覆
999 瀏覽次數

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? 


頭像
捨棄
作者 最佳答案

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?


頭像
捨棄

What is the purpose behind complicating translations in v16?

最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
7月 25
877
2
7月 25
1025
1
7月 25
2127
3
4月 25
2053
3
4月 25
3104