Skip to content

Commit a1463da

Browse files
committed
[FIX] Odoo 11.0-12.0: add asian fonts and rtlcss
When printing a report, the asian fonts were missing. Also, since Odoo 12.0, rtlcss is needed to support the right-to-left languages in the Odoo UI. With this commit, the noto-cjk fonts are added as well as the nodejs rtlcss tool.
1 parent 01f0a1e commit a1463da

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

11.0/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN set -x; \
1010
&& apt-get install -y --no-install-recommends \
1111
ca-certificates \
1212
curl \
13+
fonts-noto-cjk \
1314
gnupg \
1415
libssl1.0-dev \
1516
node-less \

12.0/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN set -x; \
1010
&& apt-get install -y --no-install-recommends \
1111
ca-certificates \
1212
curl \
13+
fonts-noto-cjk \
1314
gnupg \
1415
libssl1.0-dev \
1516
node-less \
@@ -34,6 +35,14 @@ RUN set -x; \
3435
&& apt-get update \
3536
&& apt-get install -y postgresql-client
3637

38+
# Install rtlcss (on Debian stretch)
39+
RUN set -x;\
40+
curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
41+
&& echo "deb http://deb.nodesource.com/node_8.x stretch main" > /etc/apt/sources.list.d/nodesource.list \
42+
&& apt-get update \
43+
&& apt-get install -y nodejs \
44+
&& npm install -g rtlcss
45+
3746
# Install Odoo
3847
ENV ODOO_VERSION 12.0
3948
ENV ODOO_RELEASE 20181126

0 commit comments

Comments
 (0)