add variable OneTeam_pos

This commit is contained in:
espurio 2022-06-03 08:11:47 -05:00
parent 69a9e17cdb
commit b8696b1937
2 changed files with 44 additions and 1 deletions

View File

@ -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"

View File

@ -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"