[ADD]Odoo images : add i18n import and upd scripts
This commit is contained in:
parent
4284062634
commit
15ca7a4bbd
@ -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/OCA/web && \
|
||||||
git clone --depth 1 -b 10.0 https://github.com/Openworx/backend_theme
|
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
|
WORKDIR /opt/odoo
|
||||||
|
@ -25,3 +25,6 @@ WORKDIR /opt/odoo
|
|||||||
# Addons dependencies
|
# Addons dependencies
|
||||||
RUN pip3 install --user --no-cache-dir setuptools-scm==5.0.2 && \
|
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
|
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/
|
||||||
|
@ -21,3 +21,6 @@ WORKDIR /opt/odoo
|
|||||||
|
|
||||||
# Addons dependencies
|
# Addons dependencies
|
||||||
RUN .local/bin/pip3 install --no-cache-dir --user git+https://github.com/OCA/openupgradelib.git@3.3.2
|
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/
|
||||||
|
@ -20,3 +20,6 @@ WORKDIR /opt/odoo
|
|||||||
|
|
||||||
# Addons dependencies
|
# Addons dependencies
|
||||||
RUN .local/bin/pip3 install --user git+https://github.com/OCA/openupgradelib.git@3.3.4
|
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/
|
||||||
|
@ -17,4 +17,7 @@ RUN curl -LO "https://downloadarchive.documentfoundation.org/libreoffice/old/${L
|
|||||||
USER odoo
|
USER odoo
|
||||||
RUN pip install --no-cache-dir --user py3o.template==0.10.0 py3o.formats==0.3
|
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
|
WORKDIR /opt/odoo
|
||||||
|
3
odoo/odoo/i18n-import.sh
Normal file
3
odoo/odoo/i18n-import.sh
Normal 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
3
odoo/odoo/upd.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
OCB/odoo-bin -c /opt/odoo/odoo.conf --stop-after-init --no-xmlrpc -u "$1" -d "$2"
|
Loading…
Reference in New Issue
Block a user