Compare commits

...

24 Commits

Author SHA1 Message Date
4754e726c1 Merge branch 'feature/approval' into dev
All checks were successful
Setup Native Action / native (3.12.7) (push) Has been skipped
Setup Native Action / docker (3.12.7) (push) Has been skipped
2025-02-04 14:48:42 +07:00
d9e2e6ab26 update 2025-02-03 17:39:21 +07:00
8623d52451 update 2025-02-03 16:05:14 +07:00
183e8d1d48 update 2025-02-03 16:00:03 +07:00
2d6935ee25 update 2025-02-03 15:59:25 +07:00
720fce0c4f update extra addons 2025-02-03 15:15:12 +07:00
1ddad41b61 update extra addons 2025-01-24 15:40:46 +07:00
883b060b49 update 2025-01-24 12:05:59 +07:00
b5e7f090eb update extra addons 2025-01-24 11:43:23 +07:00
c724963280 update 2025-01-23 17:58:43 +07:00
e21042023b update extra addons 2025-01-23 17:10:11 +07:00
4e341201c1 update 2025-01-23 17:06:21 +07:00
0cc7e6f0c6 update approval addons 2025-01-22 16:03:35 +07:00
46cb2f9075 update 2025-01-22 13:52:20 +07:00
7fbfc9d03d update 2025-01-21 16:15:23 +07:00
f3b5153d7d update 2025-01-21 16:03:18 +07:00
52a6c75f1d update 2025-01-21 11:42:25 +07:00
50c29d8d6f update : refactor generating config 2025-01-21 11:42:05 +07:00
acd663ba1b update 2025-01-21 11:02:28 +07:00
fc1fcbbb26 change submodule to extra-addons 2025-01-21 10:56:07 +07:00
0eafc6f8f9 update 2025-01-21 10:55:22 +07:00
ca6f3e9838 update 2025-01-21 10:54:22 +07:00
2e2a4f1356 update 2025-01-21 10:51:21 +07:00
01fbaaf23f check submodule to branch community/feature/approvals 2025-01-21 10:49:56 +07:00
5 changed files with 18 additions and 10 deletions

2
.gitignore vendored
View File

@ -2,6 +2,7 @@
_build/
# dotfiles
.*
!.gitignore
!.github
@ -39,7 +40,6 @@ tsconfig.json
package-lock.json
package.json
.husky
# various virtualenv
/bin/
/build/

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "Odoo18-Enterprise"]
[submodule "Odoo18-Extra-Addons"]
path = extra-addons
url = https://git.nextzenos.com/NextERP/Odoo18-Enterprise.git
url = https://git.nextzenos.com/NextERP/Odoo18-Extra-Addons.git

View File

@ -1,3 +1,6 @@
ifneq ("$(wildcard .env)", "")
include .env
endif
.SHELLFLAGS += ${SHELLFLAGS} -e
PWD = $(shell pwd)
UID = $(shell id -u)
@ -23,6 +26,7 @@ CONTAINER_ID=${PROJECT}-${TAG}
VERSION := community
ADDONS=${PWD}/addons,${PWD}/odoo/addons,${PWD}/extra-addons
BACKUP=${CDN}/raw/branch/main/backup/${VERSION}/odoo18-main_2025-01-15_08-05-47.zip
##### Native Deployment#########
install:
sudo apt update -y && \
@ -41,7 +45,7 @@ download_backup:
${PWD}/setup/download_backup.sh $$LinkDB backup.zip
gen_config:
$(MAKE) download_backup LINKDB=${BACKUP}
${PWD}/setup/init_config.sh --native ${ADDONS}
${PWD}/setup/init_config.sh --native ${ADDONS} ${DB_USER} ${DB_PASSWORD} ${DB_SERVER} ${DB_PORT}
run_server:
${PYTHON} odoo-bin --config=${CONFIG}
run_test:

4
env.template Normal file
View File

@ -0,0 +1,4 @@
DB_USER=
DB_PASSWORD=
DB_SERVER=
DB_PORT=5432

View File

@ -5,7 +5,6 @@ export DEBIAN_FRONTEND=noninteractive
set -euo pipefail
DEPLOY_PATH=$(pwd)/deployment
SETUP_PATH=$(pwd)/setup
PIP=$(pwd)/venv/bin/pip
PYTHON=$(pwd)/venv/bin/python
ODOO_ADDONS=${DEPLOY_PATH}/addons
@ -194,9 +193,10 @@ Generate_Config_Docker(){
Show 0 " Generate Config Complete"
}
Generate_Config_Native(){
# Load environment variables from .env file
Show 2 "Environment variables loaded:"
printenv | sort
DB_USER=${2:-}
DB_PASSWORD=${3:-}
DB_SERVER=${4:-}
DB_PORT=${5:-}
ADDONS=${1:-}
REPO_NAME=$(basename "$(git rev-parse --show-toplevel)" | sed -E 's/[.-]/_/g')
USER="${REPO_NAME:-"default_repo"}"
@ -230,7 +230,7 @@ main(){
# Check_Docker_Install
case "$TYPE" in
--native)
Generate_Config_Native $2
Generate_Config_Native $2 $3 $4 $5 $6
;;
--docker)
Generate_Config_Docker $2 $3 $4
@ -242,4 +242,4 @@ main(){
esac
}
main ${1:-} ${2:-} ${3:-} ${4:-}
main "$@"