From b8696b1937780e06fae3f0aae267183379074f3f Mon Sep 17 00:00:00 2001 From: espurio Date: Fri, 3 Jun 2022 08:11:47 -0500 Subject: [PATCH] add variable OneTeam_pos --- Dockerfile | 3 ++- trytond-modules_non_official.sh | 42 +++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a483bab..580126c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ - #version Trytond server example 5.0 +#version Trytond server example 5.0 FROM tryton/tryton: #lebel custom LABEL org.label-schema.version="" @@ -19,6 +19,7 @@ ENV GnuHealth="False" ENV Etrivial="False" ENV Trytonar="False" ENV OneTeam="False" +ENV OneTeam_pos="False" ENV Presik="False" ENV Datalife="False" ENV NaNtic="False" diff --git a/trytond-modules_non_official.sh b/trytond-modules_non_official.sh index a75a11d..720d245 100644 --- a/trytond-modules_non_official.sh +++ b/trytond-modules_non_official.sh @@ -100,6 +100,48 @@ if [ ${OneTeam} = "True" ]; then fi +if [ ${OneTeam_pos} = "True" ]; then + apt-get update \ + && apt-get install -y --no-install-recommends \ + git \ + fossil \ + pkg-config \ + libxml2-dev \ + libxmlsec1-dev \ + libxmlsec1-openssl \ + libffi-dev \ + build-essential \ + python3-dev \ + python3-qrcode \ + && rm -rf /var/lib/apt/lists/* \ + && pip3 install --upgrade pip \ + && pip3 install pytz \ + "git+https://github.com/bit4bit/facho.git" + prefix="trytondo-" + team_org="OneTeam" + pip="True" + get_one_team=( `${PYTHON_VERSION} $multi_migrate list-repo-token --domain ${GITEA_DOMAIN} --team_org $team_org --access_token ${GITEA_ACCESS_TOKEN} --verbose True` ) + clone_module $team_org ${TRYTOND_VERSION} $prefix "${get_one_team[@]}" + + inactive_modules_trytond=( + sale_payment + ) + inactive_module "trytond-" $pip "${inactive_modules_trytond[@]}" + + modules_presik=( + trytonpsk-account_co_pyme ) + clone_module "Presik" "False" "trytonpsk-" "${modules_presik[@]}" + modules_nantic=( + trytond-sale_w_tax + trytond-sale_pos + trytond-sale_shop + trytond-sale_payment + trytond-purchase_discount + trytond-account_invoice_discount ) + clone_module "NaNtic" ${TRYTOND_VERSION} "trytond-" "${modules_nantic[@]}" +fi + + if [ ${Presik} = "True" ]; then prefix="trytonpsk-" team_org="Presik"