Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Odoo 16 Import Translations marked as "code" not working

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
importtranslationsbugodoo16features
8 Odpowiedzi
13512 Widoki
Awatar
Riquo Electronics

Hello,


Translations lines marked as "code" import / export are not working on Odoo 16. We have been trying on october first version, and each month the same: still not working.


UPDATE 070623:

- 16.0 Enterprise and Community (last checked 080623) and all 16 till now.

- Bug is back again or still unsolved.

- Bug impacts Odoo 16 on translations marked as "code" (find here screenshot).

- Bug is being pointed out on many forum post ( e.g.  https://www.odoo.com/es_ES/forum/ayuda-1/translations-in-odoo-16-online-220924 ) and issues e.g. https://github.com/odoo/odoo/issues/115876

- Also on latest Odoo 16, we have reproduced and confirmed here,  please try on official Odoo here: https://demo4.odoo.com/ or https://demo6.odoo.com/




¿Can someone please help reporting this bug to Odoo guys?

Impacted version: 
 
- 16.0 (last checked 270323) and all 16 till March.
 
 
Steps to reproduce:
 
1. Settings > Translations > Export a translation for a single or all modules.
2. Donwload a .PO (same on CSV) and open using POEDIT or just a simple TXT editor (does not matter).
3. Import .PO file once modified locally and saved.
 
 
Current behavior:
 
- PO file is not being imported. No error message, neither log error, no trace of this error. Odoo log does confirm correct upload ! Even restarting server and/or single module updating, terms are still not updated.
 


Expected behavior:
 
- PO file is expected to be effectively imported and tanslations to be applied as on e.g. Odoo 15 (no need to restart server, neither single module update !)
 

Thank you




Odoo log shows translation as uploaded !!


2
Awatar
Odrzuć
arick111

I just wanted to express my gratitude for the time I spent reading your post.

Delon

I want express my gratitude, I notice exactly the same bug. If you specify some modules you can do the translation but if you specify nothing you export all of terms with type code and it become impossible to translate these important terms. I lost a lot of time before to see your post and I was really disapointed to see in the same time a big regression that is you can no more translate directly in Odoo some terms. So translation in Odoo became annoying considering just for one word you have to export / import PO and all of that to see some parts does not work ..... :(

Awatar
Niyas Raphy (Walnut Software Solutions)
Najlepsza odpowiedź

Hi,

in Odoo 16, code translations can be exported but are not expected to be customized/imported.

Reason:
code translations can be treated as part of code, which are shared to all registries/databases
you can only change it in the po file in the code directory like changing the source code for all registries/databases

For more: https://github.com/odoo/odoo/issues/115876#issuecomment-1580532408


Thanks

0
Awatar
Odrzuć
Riquo Electronics
Autor

Hi Niyas,

Thanks for detailed answer. Yes it is !

However that being said, it seems to us that:

a - Odoo end users need most of code tanslations to be customized. This new Odoo 16 behaviour not only requires us to impact on "code directory" (almost impossible to mantain bcs updates, etc.) as you said, but also does impact on Odoo as multi database service. A big doble issue here.

b - As pointed out here https://github.com/odoo/odoo/issues/124124, there is not a clear consistency along "code" importable translations, not talking about "code directory": on importable PO file, some are allowed to be imported, some not. Having them on database PO file (not code directory), all terms should be importable. Seems to be a bug there. Why this, what do you think?

Will Odoo switch to a single-database model in future?

Guess any end client using a 300 euros monthly Enterprise licence, or an old clients updating to Odoo 16 CE: how do we justify this core issue towards our clients?

Moreover, Odoo 17 seems to go in the same line: deeply worrisome.

Thanks for your attention

Cheers!

Awatar
Tommy Lo
Najlepsza odpowiedź

-- this universal bug is still open for Odoo 16 / 17  - and everyone who is telling the opposite is wrong!

see

https://github.com/odoo/odoo/issues/115876

1
Awatar
Odrzuć
Awatar
yoany mora
Najlepsza odpowiedź

Hi everybody, I just found this error while working with a JS translation and a teammate helped me, let me help you as well.

I attached a snippet to this response, basically you have to inherit the method of the attached snippet and change the line with the OR expression, substitute ´your_modules_name´ value. In the method comments is the explanation about why this needs to be made. Hope this works for you!


from odoo import models
from odoo.osv import expression
​

​class IrHttp(models.AbstractModel):
​ ​_inherit = "ir.http"
​ ​@classmethod
​ ​def _get_translation_frontend_modules_domain(cls): ​
​ ​ ​# Odoo by default only gets the translations for the modules ​that have
​ ​# `website` in it's name, that being said, if an app ads static files
​ ​# and doesn't have the word `website` the translations are not brought.
​ ​# for a better explanation see:
​ ​#https://github.com/Vauxoo/odoo/commit/8b8815f44cc7e8529ba0f841c7366ee6b8e28356
​ ​domain = super()._get_translation_frontend_modules_domain()
​​return expression.OR([domain, [("name", "in", ["your_module_name"])]])
0
Awatar
Odrzuć
Awatar
David Fleischmann
Najlepsza odpowiedź

This seems to still be an issue. Having the same trouble when trying to change translation for: l10n_din5008_document_title on odoo.sh
https://github\\.com/odoo/odoo/blob/d748ca8708aa5d13737de9b78722b3755a6cdebc/addons/l10n_din5008_sale/models/sale\\.py 

I\\ think\\ also\\ here\\ the\\ issue\\ ist\\ that\\ it's\\ marked\\ as\\ a\\ python\\ code\\ value\\ in\\ csv\\ \\(see\\ last\\ column:\\ odoo\\-python\\): 
l10n_din5008_sale,code,addons/l10n_din5008_sale/models/sale.py,41,Sales Order,Verkaufsauftrag,odoo-python

0
Awatar
Odrzuć
Awatar
Maxg
Najlepsza odpowiedź

To make sure I was using the very last version of Odoo 16, I just tested today on odoo runbot with both version CE and Enterprise,  (Odoo 16.0+e (Enterprise Edition) Database expiration: July 3, 2023. I tested both with PO file and with CSV file. I did a simple test: Translate website product page message: "Get notified with back in stock". It is not working. Please try! Any suggestion ?

website_sale_stock,code,addons/website_sale_stock/static/src/xml/website_sale_stock_product_availability.xml,19,Get notified when back in stock,Avvisami quando torna disponibile,odoo-javascript

0
Awatar
Odrzuć
Riquo Electronics
Autor

Hi Maxg,

First of all thanks for following this up.

Yes, just checked on our recently update installations, and yes, that term is not being translated to a second language. We tried from English to Spanish. Same as you.

Can confirm issue is back again for Odoo 16.

Could anyone here please help us spread this urgent issue out?

Appreciate

Awatar
Cybrosys Techno Solutions Pvt.Ltd
Najlepsza odpowiedź

We can import/export translations in Odoo16

Go to Settings -> Translation -> Export Translation -> Then add Language(French) , file format(PO file) and Apps to Export(Odoo15 CRM kit, CRM Dashboard) ->Export

Download the .po file

(If you need any more translation to add it in the .py file) then,

Go to Settings -> Translation -> Import Translation -> Then add language and corresponding language code also add the downloaded .py file and enable the boolean field 'Overwrite Existing Terms' ->Import

Go to My Profile -> Preferences -> Language

0
Awatar
Odrzuć
Riquo Electronics
Autor

Hi Cybrosys,

First of all thanks for your reply.

Issue is still there on Odoo 16, you can also have a try on latest Odoo 16 demo:

https://demo4.odoo.com/

or

https://demo6.odoo.com/

We have updated our first post, because issue is on translations marked as "code".

Check please attached screen-shot on our updated answer.

Have please a look here: https://github.com/odoo/odoo/issues/115876

Issue is back again or just unsolved.

Appreciate

Maxg

Riquo I confirm this is not working tried today in runbot odoo 16 enterprise edition.

Maxg

This is not working.

Awatar
Riquo Electronics
Autor Najlepsza odpowiedź

Apologies for answering ourselves.


For anyone landing here, this bug has been solved on latest Odoo 16 update.


Please, refer to the following report: https://github.com/odoo/odoo/issues/115876


Import translation is currently working as per April 2023 Odoo 16 updates.


Please, update your Odoo installation in order to fix it.


How to translate Odoo 16:

 
1. Settings > Translations > Export a translation for a single or all modules.
2. Donwload a .PO (or CSV) and open using POEDIT or just a TXT editor.
3. Import .PO file once modified locally and saved ("Overwrite Existing Terms" option should be checked whilst importing).


Once uploaded, no need to restart server, neither upgrading module being translated.


Regards

0
Awatar
Odrzuć
Awatar
Ray Carnes (ray)
Najlepsza odpowiedź

I tested today and was able to get Translations working fine:


1. Identify the App or Apps containing the terms you want to export.  

For this example, we will translate the CRM stage name "Proposition" to "Proposal", so by checking the Metadata of this record in Developer mode, we can see that we need to export the CRM App:



2. Via the Export Translation Menu, select the App or Apps you wish to export, with the Language you wish to translate selected.

You cannot translate English (US) as this is the base language for Odoo, but you can export English (US) and work with the terms it exports.



3. Download and edit the CSV file, adding the Value for the term(s) you want to replace. 

For this example, there is only one occurrence of the word "Proposition" in the CRM App, but you may find more if the term is also used in Menus or Filters, etc. Be sure to check every place the term occurs in the src field in your downloaded file.


4. Upload your edited file. Be sure to use the same Language Name and code for the language you want to change terms for.

Again, you can't translate English (US) so you will either need to create your own language, or overwrite terms in another language.



5. Switch to the Language you have translated, via the Preferences Menu, to see the terms translated:


0
Awatar
Odrzuć
Riquo Electronics
Autor

Hi Ray, greetings of the day:

First of all thank you for quick answering and for details !!

We have been previously trying exactly as you shown, no way to get it working. We are using exactly the same method as per Odoo 15 and never failed.

We will attempt to record a video and share ;-) as soon as possible.

We are using CE16 as per 270323 latest download.

Are you using Enterprise or any newer version? Please, might you let us know exactly which version are you using?

We have been digging into forum, exactly the same:

https://www.odoo.com/es_ES/forum/ayuda-1/translations-in-odoo-16-online-220924
https://www.odoo.com/es_ES/forum/ayuda-1/where-is-the-translated-terms-menu-in-odoo-16-211982

Please let us know

Apprecciate!

Ray Carnes (ray)

I am using Odoo Enterprise (I don't work with CE) and have been doing this same process successfully since December, with versions updated each month or so. A video won't help me help you any more than I have already - I can only share my experience with how things are working when I use Odoo Enterprise.

Maxg

I followed these steps in Odoo 16 enterprise and this is not working.

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Translations in Odoo 16 Online Rozwiązane
import translations odoo16features
Awatar
Awatar
Awatar
Awatar
Awatar
8
paź 25
7851
Bug appear when add boolean_toggle widget in Wizard
bug odoo16features
Awatar
0
sie 23
3262
How to take translations from one database to another using code in Odoo 16 ?
import database translations controllers odoo16features
Awatar
0
lut 23
971
Odoo 16 Rozwiązane
translations odoo16features
Awatar
Awatar
1
gru 22
4926
Import translation status / mass update translation status
import translations
Awatar
0
lis 16
4537
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now