diff --git a/odoo/dev.yml b/odoo/dev.yml index 127eedf..cb08b4d 100644 --- a/odoo/dev.yml +++ b/odoo/dev.yml @@ -43,6 +43,7 @@ services: image: registry.yaltik.net/odoodev:yaltik10 environment: DEV: 1 + CODE_FOLDER: code ADMIN_PASSWORD: dev LIST_DB: "True" DB_MAXCONN: 20 diff --git a/odoo/golem/Dockerfile.master.dev b/odoo/golem/Dockerfile.master.dev index 1c82504..801e38f 100644 --- a/odoo/golem/Dockerfile.master.dev +++ b/odoo/golem/Dockerfile.master.dev @@ -7,5 +7,6 @@ COPY pgcli.sh ./ # Odoo specific RUN pip install --user watchdog COPY shell10.sh ./ +COPY i18n.sh ./ COPY launch10.dev.sh ./launch10.sh ENV DEV 1 diff --git a/odoo/golem/Dockerfile.v3.dev b/odoo/golem/Dockerfile.v3.dev index 9787f4e..8362f40 100644 --- a/odoo/golem/Dockerfile.v3.dev +++ b/odoo/golem/Dockerfile.v3.dev @@ -7,5 +7,6 @@ COPY pgcli.sh ./ # Odoo specific RUN pip install --user watchdog COPY shell10.sh ./ +COPY i18n.sh ./ COPY launch10.dev.sh ./launch10.sh ENV DEV 1 diff --git a/odoo/golem/i18n.sh b/odoo/golem/i18n.sh new file mode 100644 index 0000000..67da7bd --- /dev/null +++ b/odoo/golem/i18n.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd "custom-addons/$CODE_FOLDER/$2/i18n/" && /opt/odoo/OCB/odoo-bin -c /opt/odoo/odoo.conf -d "$1" --i18n-export="$2".po --modules="$2" && mv "$2".po "$2".pot && cd /opt/odoo +cd "custom-addons/$CODE_FOLDER/$2/i18n/" && /opt/odoo/OCB/odoo-bin -c /opt/odoo/odoo.conf -d "$1" --i18n-export=fr.new.po --modules=mie_sale --language=fr_FR && cd /opt/odoo diff --git a/odoo/odoo/Dockerfile.10.dev b/odoo/odoo/Dockerfile.10.dev index e11ebd0..3bcbc5b 100644 --- a/odoo/odoo/Dockerfile.10.dev +++ b/odoo/odoo/Dockerfile.10.dev @@ -7,5 +7,6 @@ COPY pgcli.sh ./ # Odoo specific RUN pip install --user watchdog COPY shell10.sh ./ +COPY i18n.sh ./ COPY launch10.dev.sh ./launch10.sh ENV DEV 1 diff --git a/odoo/odoo/Dockerfile.py3o.10.dev b/odoo/odoo/Dockerfile.py3o.10.dev index 5cd34cc..7ce1c1a 100644 --- a/odoo/odoo/Dockerfile.py3o.10.dev +++ b/odoo/odoo/Dockerfile.py3o.10.dev @@ -7,5 +7,6 @@ COPY pgcli.sh ./ # Odoo specific RUN pip install --user watchdog COPY shell10.sh ./ +COPY i18n.sh ./ COPY launch10.dev.sh ./launch10.sh ENV DEV 1 diff --git a/odoo/odoo/i18n.sh b/odoo/odoo/i18n.sh new file mode 100644 index 0000000..67da7bd --- /dev/null +++ b/odoo/odoo/i18n.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd "custom-addons/$CODE_FOLDER/$2/i18n/" && /opt/odoo/OCB/odoo-bin -c /opt/odoo/odoo.conf -d "$1" --i18n-export="$2".po --modules="$2" && mv "$2".po "$2".pot && cd /opt/odoo +cd "custom-addons/$CODE_FOLDER/$2/i18n/" && /opt/odoo/OCB/odoo-bin -c /opt/odoo/odoo.conf -d "$1" --i18n-export=fr.new.po --modules=mie_sale --language=fr_FR && cd /opt/odoo diff --git a/odoo/py3o.yml b/odoo/py3o.yml index 331a4a7..9a8685e 100644 --- a/odoo/py3o.yml +++ b/odoo/py3o.yml @@ -27,6 +27,7 @@ services: image: registry.yaltik.net/odoodev:yaltikpy3o10 environment: DEV: 1 + CODE_FOLDER: code ADMIN_PASSWORD: dev LIST_DB: "True" DB_MAXCONN: 20