Skip to content

Commit 2d4b6a9

Browse files
committed
Release 1.6.0
Added ----- - Experimental support for Odoo 18
2 parents 2de904d + 2f50d14 commit 2d4b6a9

File tree

7 files changed

+86
-12
lines changed

7 files changed

+86
-12
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release Notes
22

3+
## Release (1.6.0) (2024-12-15)
4+
5+
### Added
6+
7+
- Experimental support for Odoo 18
8+
9+
---
10+
311
## Release 1.5.1 (2024-04-01)
412

513
### Fixed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ The canonical source of odoo-helper-scripts is hosted on [GitLab](https://gitlab
9292
- *14.0*
9393
- *15.0*
9494
- *16.0*
95-
- *17.0* (**Experimental**)
95+
- *17.0*
96+
- *18.0* (**Experimental**)
9697
- OS support:
9798
- On *Ubuntu* should work nice (auto tested on *Ubuntu 20.04, 22.04*)
9899
- Also should work on *Debian* based systems, but some troubles may happen with installation of system dependencies.

docs/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ please, read carefully [Usage notes](#usage-note) section.
9494
- *14.0*
9595
- *15.0*
9696
- *16.0*
97-
- *17.0* (**Experimental**)
97+
- *17.0*
98+
- *18.0* (**Experimental**)
9899
- OS support:
99100
- On *Ubuntu* should work nice
100101
- Also should work on *Debian* based systems, but some troubles may happen with installation of system dependencies.

lib/install.bash

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -696,15 +696,17 @@ function install_build_python_guess_version {
696696
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 12 ]; then
697697
echo "3.7.13";
698698
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 13 ]; then
699-
echo "3.8.13";
699+
echo "3.8.20";
700700
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 14 ]; then
701-
echo "3.8.13";
701+
echo "3.8.20";
702702
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 15 ]; then
703-
echo "3.8.13";
703+
echo "3.8.20";
704704
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 16 ]; then
705-
echo "3.8.13";
705+
echo "3.8.20";
706706
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 17 ]; then
707-
echo "3.10.13";
707+
echo "3.10.15";
708+
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 18 ]; then
709+
echo "3.10.15";
708710
else
709711
echoe -e "${REDC}ERROR${NC}: Automatic detection of python version for odoo ${ODOO_VERSION} is not supported!";
710712
return 1;
@@ -1193,6 +1195,9 @@ function odoo_run_setup_py {
11931195
# Note, that we do it here, because it is mentioned in setup.py,
11941196
# thus it cannot be updated in standard way.
11951197
sed -i 's/suds-jurko/suds-py3/g' "$ODOO_PATH/setup.py";
1198+
1199+
# We have to replace psycopg2 by psycopg-binary to be consistent with requirements.txt
1200+
sed -i 's/psycopg2/psycopg2-binary/g' "$ODOO_PATH/setup.py";
11961201
fi
11971202

11981203
# Install odoo

lib/odoo.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ function odoo_ensure_python_version {
291291
${python_interpreter} -c "import sys; assert (3, 7) <= sys.version_info < (3, 11);";
292292
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 17 ]; then
293293
${python_interpreter} -c "import sys; assert sys.version_info > (3, 10);";
294+
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 18 ]; then
295+
${python_interpreter} -c "import sys; assert sys.version_info > (3, 10);";
294296
else
295297
echoe -e "${REDC}ERROR${NC}: Automatic detection of python version for odoo ${ODOO_VERSION} is not supported!";
296298
return 1;

lib/version.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# Odoo Helper Scripts: Version
1010

1111
# Define version number
12-
ODOO_HELPER_VERSION="1.5.1";
12+
ODOO_HELPER_VERSION="1.6.0";
1313
ODOO_HELPER_CONFIG_VERSION="1";

tests/test.bash

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -977,23 +977,23 @@ odoo-helper test bureaucrat_knowledge
977977
odoo-helper db drop odoo16-odoo-test;
978978

979979

980-
#echo -e "${YELLOWC}
980+
echo -e "${YELLOWC}
981981
#=================================
982982
#Install and check Odoo 17.0 (Py3)
983983
#=================================
984-
#${NC}"
984+
${NC}"
985985

986986
cd ../;
987987

988-
# Remove odoo 17
988+
# Remove odoo 16
989989
# this is needed to bypass gitlab.com limitation of disk space for CI jobs
990990
rm -rf ./odoo-16.0
991991

992992
# Install odoo 17
993993
odoo-helper install sys-deps -y 17.0;
994994

995995
odoo-install --install-dir odoo-17.0 --odoo-version 17.0 \
996-
--http-port 8569 --http-host local-odoo-17 \
996+
--http-port 17569 \
997997
--db-user odoo17 --db-pass odoo --create-db-user \
998998
--build-python-if-needed
999999

@@ -1033,6 +1033,63 @@ odoo-helper install website;
10331033
odoo-helper db drop odoo17-odoo-test;
10341034

10351035

1036+
echo -e "${YELLOWC}
1037+
#=================================
1038+
#Install and check Odoo 18.0 (Py3)
1039+
#=================================
1040+
${NC}"
1041+
1042+
cd ../;
1043+
1044+
# Remove odoo 17
1045+
# this is needed to bypass gitlab.com limitation of disk space for CI jobs
1046+
rm -rf ./odoo-17.0
1047+
1048+
# Install odoo 18
1049+
odoo-helper install sys-deps -y 18.0;
1050+
1051+
odoo-install --install-dir odoo-18.0 --odoo-version 18.0 \
1052+
--http-port 18069 \
1053+
--db-user odoo18 --db-pass odoo --create-db-user \
1054+
--build-python-if-needed
1055+
1056+
cd odoo-18.0;
1057+
1058+
# Install py-tools and js-tools
1059+
odoo-helper install py-tools;
1060+
odoo-helper install js-tools;
1061+
1062+
odoo-helper server run --stop-after-init; # test that it runs
1063+
1064+
# Show project status
1065+
odoo-helper status;
1066+
odoo-helper server status;
1067+
odoo-helper start;
1068+
odoo-helper ps;
1069+
odoo-helper status;
1070+
odoo-helper server status;
1071+
odoo-helper stop;
1072+
1073+
# Show complete odoo-helper status
1074+
odoo-helper status --tools-versions --ci-tools-versions;
1075+
1076+
# Database management
1077+
odoo-helper db create --tdb --lang en_US;
1078+
1079+
odoo-helper addons update-list --tdb;
1080+
odoo-helper addons install --tdb --module crm;
1081+
odoo-helper addons test-installed crm;
1082+
1083+
odoo-helper lsd; # List databases
1084+
1085+
## Install addon website via 'odoo-helper install'
1086+
odoo-helper install website;
1087+
1088+
# Drop created databases
1089+
odoo-helper db drop odoo18-odoo-test;
1090+
1091+
1092+
10361093
echo -e "${YELLOWC}
10371094
=============================================================
10381095
Run 'prepare-docs' script to test generation of help messages

0 commit comments

Comments
 (0)