Skip to Content
Menú
This question has been flagged
8 Respostes
14029 Vistes

Hello


after a clean installation of odoo 17 (on both windows and ubuntu), when I switch to RTL languages as like as Persian or Arabic, page direction remains LTR instead of RTL,

also the printable documents (like invoice, quotation...) are shown in LTR

is there any extra installation steps or extra module required to fully support the RTL languages in ODOO 17?


 Thanks

Avatar
Descartar
Autor

Hello

I noticed that odoo have not RTL as built in feature and I have to install the RTLCSS using the nodejs,
I installed it using the following command:
npm install -g rtlcss
and I added the rtlcss.cmd path to "system variables" and rrstarted the ODOO service

after restart, I regenerated the assets bounde,
now, When I inspect rhe BODY and other HTML taged in the pages, ot shoes me that its going to use a new CSS with "rtl" in its classes, but there is no RTL related tags in the loaded CSS files and it peares thet the installed RTLCSS node module is not working and nothing is applied on the css files.

is there any other module or steeps needed to be down on the app exept of what mentioned on this link?
https://www.odoo.com/documentation/17.0/administration/install/source.html

Thanks

Best Answer

after installing rtlcss just enable debug mode with assets and it's will be corrected 😍

Avatar
Descartar
Best Answer

I finally got this to work by running Powershell as administrator and running this:

Set-ExecutionPolicy RemoteSigned

Avatar
Descartar
Best Answer

Odoo must be aware of rtlcss command. Put it an it's related filed in the directory where wkhtmltopdf located.

Avatar
Descartar
Best Answer

i have the same issue on windows

Avatar
Descartar
Best Answer

Hello Ali,

As per Odoo v17 documentation >> https://www.odoo.com/documentation/17.0/administration/install/source.html for using the right-to-left interface, the rtlcc package is required.

In this document, you can find the library installation steps for Linux and Windows.






Once the library is installed make sure to restart the Odoo server. Then enable the debug mode and "regenerate Asset Bundle"


We hope it helps in resolving your issue.

Regards
Odoo Team
Webkul Software Pvt. Ltd.




Avatar
Descartar
Autor

Hello

Thank you for your suggestion
I installed the nodejs also python3 on windows, then I added the rtlcss.cmd path (C:\Users\Administrator\AppData\Roaming\npm\ to the PATH parameter in the windows environment variables) and rebooted the server, after that I enabled the debugging and run the "regenerate Assets Bundles" and switched between languages and tested this.

The issue still exists.

Autor

Hello

As your comment,
1- I Installed the community version on the windows 2022 Server on the C:\ODOO17 folder using the exe app in the https://www.odoo.com/page/download and installed the odoo and postgress using the wizard. and made the first DB with Persian language
2- I installed the python on the server
3- I installed the node on the server
4- I executed the "npm install -g rtlcss" in the C:\ODOO17 folder
5- I added the "C:\Users\Administrator\AppData\Roaming\npm" on the Server's enviroment variable
6- I restarted the server
7- I enabled the debug mode and executed the "regenerate Asset Bundle"
8- again made a server restart to be sure all things are applied

but still the RTL is not working and the pages for PERSIAN language are LTR

is there any way to check if rtlcss is working correctly on the app?
is there any fix for this?

Thanks

Autor

Hello

I also tested installing from the source and installed it from source on the windows server.
I'm sure that i done all steps based the documentation, but the same issue exists and the rtlcss is not applied and all pages for RTL languages are displayed as LTR.

its interesting that no one had same issue, may be the odoo community is not used in the regions with RTL language.

Best Answer

Hi,
See if the rtlcss package is installed or not.

Thanks

Avatar
Descartar
Autor

Hello
No, I dident.

as i read, its included in odoo 16 and 17.

have i install it manually?
have you any instruction for doing this on windows installation of odoo?

as i see, its have to be done using the npm installer, in case o installed the odoo 17 using the windows installer file not manually.

Thanks

Autor Best Answer

Hello

After Installing the first DB with Test Data,

I installed the PERSIAN (also ARABIC) and changed the language from English to Persian.


after changing the language, all texts are translated correctly, but the direction is not changed drom LTR to RTL.



is there any extra config for direction based on the language or any extra module have to be installed?


Thanks

Avatar
Descartar
Best Answer

Hi,Please confirm the steps you have done1) settings-> languages -> add language -> choose the language and click on ADD


 then click on the switch to Persian button


You can see the language is changed


And also the invoice quotation reports etc are will be in the customer languages, so verify the customer languages.


Hope it helps


Avatar
Descartar
Autor

Hello

Thank you for your answer
unfortunately, the direction dose not works as expected
The translation works fine, but the direction dose not
I sent screenshot in my answer
I tested this issue again by installing the odoo community on Windows/Ubuntu also I used the docerized version of the odoo 17

only in the docker version, if the installation language were RTL language the RTL where working fine in other situations (odoo17 on windows and Linux also initiating the dockerized version using any LTR language and then switching to RTL language) the issue were applied.

Related Posts Respostes Vistes Activitat
2
de gen. 24
15783
1
de jul. 24
1901
1
de jul. 24
1916
1
de maig 24
1046
2
d’abr. 24
11359