From 177ea3b96d7b2a3ed88d6c497485122d40f41b2e Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 17 Oct 2018 13:18:53 +0000 Subject: [PATCH] [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, '-']