From 177ea3b96d7b2a3ed88d6c497485122d40f41b2e Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 17 Oct 2018 13:18:53 +0000 Subject: [PATCH 1/2] [FIX] base: RTLCSS on Windows RTLCSS is not working on Windows for several reasons: - the executable is called `rtlcss.cmd` - rtlcss is not available in the System Path; it is only available in the User Path In this commit, we correct the first issue. opw-1892952 --- odoo/addons/base/models/assetsbundle.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/odoo/addons/base/models/assetsbundle.py b/odoo/addons/base/models/assetsbundle.py index abdb09b0d13..b675cb294c0 100644 --- a/odoo/addons/base/models/assetsbundle.py +++ b/odoo/addons/base/models/assetsbundle.py @@ -525,6 +525,8 @@ class AssetsBundle(object): def run_rtlcss(self, source): rtlcss = 'rtlcss' + if os.name == 'nt': + rtlcss = misc.find_in_path('rtlcss.cmd') cmd = [rtlcss, '-'] From 47dad7285aa485f3fbefb9c222c5fd8c46950f17 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 17 Oct 2018 13:39:15 +0000 Subject: [PATCH 2/2] [FIX] doc: RTLCSS on Windows The System Environment's variable `PATH` must be modified manually to support RTLCSS. --- doc/setup/install.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/setup/install.rst b/doc/setup/install.rst index 7469b7d0ee0..218b7bb5a7d 100644 --- a/doc/setup/install.rst +++ b/doc/setup/install.rst @@ -395,6 +395,13 @@ Source installation requires manually installing dependencies: C:\> npm install -g rtlcss + It is then necessary to edit the System Environment's variable + :envvar:`PATH` and add the folder where `rtlcss.cmd` is located. Typically: + + .. code-block:: console + + C:\Users\\AppData\Roaming\npm\ + Fetch the sources -----------------