Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
5467 Представления

many posts are available on how to deal with translations. Although I spent hours in screening those posts I don't found a solution on how to export/import product name translations. Maybe someone has experience in Odoo16 online! Finally I would like to export all products including their translations into a file and import it to a different database.

Аватар
Отменить
Лучший ответ

Hello, Perino. I will describe process step by step, it's easy, you can do it:
1. Install your language (or create new)

2. Turn on developer mode / install the "Odoo debug" extension in your browser. Be sure you turn it on. Since you turn it on, you see additional tabs in the Settings menu.

3. Go to the Settings - Translations - Export Translations

4. Choose your language, CSV format (it's the easiest way to transform it in Excel), and "Products & Pricelists" application. Then click the Export button.

5. Then extract .CSV in your Excel (Tab "Data", Get Data from txt/csv). Be sure about the encoding (in Odoo it is UTF-8 by default) and then load.

6. Find "product.template,name" in the "name" column (or any other field you want to update), and write down your names in the column "value" (you can easily match appropriate rows by "scr" column).

7. Save your translation in .CSV format.

8. Go to Settings - Translations - Import translations. 

8.1. Put the "Name" of your language in the Import pop-up "Language Name"
8.2. Put the "Locale Code" of your language in the Import pop-up "Code"
8.3. Upload your .CSV file, and click "Import".

9. Enjoy your brand new translations:

Аватар
Отменить
Автор

That's really great Yaroslav! Thank you for this very professional answer and for your effort! I have rarely seen such a professional post in the forum here! Bravo!!!

Лучший ответ

OK, it works, but... it does not export custom product created by users.

So, if you  created new product (many products), and you would like to add translation to these product, this approach will not work.

Product created by user has external id (__export__.product_template_2239_ebedef2b) and these kind is are not exported in this way.

So, yes you can export translation of demo product, but not product from production environment. ;-(


Any ideas ?

Аватар
Отменить
Лучший ответ

Impressive 

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
окт. 24
3325
1
мая 23
3472
4
мар. 24
5045
2
июл. 23
3498