[ADD]Odoo images : add i18n import and upd scripts

This commit is contained in:
Fabien BOURGEOIS 2022-12-01 19:34:36 +01:00
parent 4284062634
commit 15ca7a4bbd
7 changed files with 21 additions and 0 deletions

View File

@ -17,4 +17,7 @@ RUN git clone --depth 1 -b 10.0 https://github.com/OCA/community-data-files && \
git clone --depth 1 -b 10.0 https://github.com/OCA/web && \
git clone --depth 1 -b 10.0 https://github.com/Openworx/backend_theme
# Scripts
COPY i18n-import.sh upd.sh /opt/odoo/
WORKDIR /opt/odoo

View File

@ -25,3 +25,6 @@ WORKDIR /opt/odoo
# Addons dependencies
RUN pip3 install --user --no-cache-dir setuptools-scm==5.0.2 && \
pip3 install --user --no-cache-dir git+https://github.com/OCA/openupgradelib.git@3.3.2
# Scripts
COPY i18n-import.sh upd.sh /opt/odoo/

View File

@ -21,3 +21,6 @@ WORKDIR /opt/odoo
# Addons dependencies
RUN .local/bin/pip3 install --no-cache-dir --user git+https://github.com/OCA/openupgradelib.git@3.3.2
# Scripts
COPY i18n-import.sh upd.sh /opt/odoo/

View File

@ -20,3 +20,6 @@ WORKDIR /opt/odoo
# Addons dependencies
RUN .local/bin/pip3 install --user git+https://github.com/OCA/openupgradelib.git@3.3.4
# Scripts
COPY i18n-import.sh upd.sh /opt/odoo/

View File

@ -17,4 +17,7 @@ RUN curl -LO "https://downloadarchive.documentfoundation.org/libreoffice/old/${L
USER odoo
RUN pip install --no-cache-dir --user py3o.template==0.10.0 py3o.formats==0.3
# Scripts
COPY i18n-import.sh upd.sh /opt/odoo/
WORKDIR /opt/odoo

3
odoo/odoo/i18n-import.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
OCB/odoo-bin -c /opt/odoo/odoo.conf --stop-after-init --no-xmlrpc --language=fr_FR --i18n-overwrite --i18n-import=/opt/odoo/custom-addons/"$1"/i18n/fr.po -d "$2"

3
odoo/odoo/upd.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
OCB/odoo-bin -c /opt/odoo/odoo.conf --stop-after-init --no-xmlrpc -u "$1" -d "$2"