Odooers论坛

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Page Direction for RTL languages in ODOO 17

形象
odoo
1 备注
形象
丢弃
形象
odoo
-

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

7 答案
0
形象
odoo
最佳答案

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

形象
丢弃
0
形象
odoo
最佳答案

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

形象
丢弃
0
形象
odoo
最佳答案

i have the same issue on windows

形象
丢弃
0
形象
odoo
最佳答案

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.




3 注释
形象
丢弃
形象
odoo
-

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.

形象
odoo
-

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

形象
odoo
-

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.

0
形象
odoo
最佳答案

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

Thanks

1 备注
形象
丢弃
形象
odoo
-

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

0
形象
odoo
最佳答案

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

形象
丢弃
0
形象
odoo
最佳答案

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


1 备注
形象
丢弃
形象
odoo
-

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.