Skip to content

Commit

Permalink
Release 1.5.0 (2023-11-16)
Browse files Browse the repository at this point in the history
Added
-----

- Experimental support of Odoo 17.0
  • Loading branch information
katyukha committed Nov 16, 2023
2 parents ee8557b + c507ece commit 7a21f66
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 37 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release Notes

## Release 1.5.0 (2023-11-16)

### Added

- Experimental support of Odoo 17.0

---

## Release 1.4.0 (2023-11-08)

### Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ The canonical source of odoo-helper-scripts is hosted on [GitLab](https://gitlab
- *14.0*
- *15.0*
- *16.0*
- *17.0* (**Experimental**)
- OS support:
- On *Ubuntu* should work nice (auto tested on *Ubuntu 20.04, 22.04*)
- Also should work on *Debian* based systems, but some troubles may happen with installation of system dependencies.
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ please, read carefully [Usage notes](#usage-note) section.
- *14.0*
- *15.0*
- *16.0*
- *17.0* (**Experimental**)
- OS support:
- On *Ubuntu* should work nice
- Also should work on *Debian* based systems, but some troubles may happen with installation of system dependencies.
Expand Down
9 changes: 8 additions & 1 deletion lib/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,12 @@ function install_sys_deps_for_odoo_version {
local control_url="https://raw.githubusercontent.com/odoo/odoo/$odoo_branch/debian/control";
local tmp_control;
tmp_control=$(mktemp);
wget -q -T 15 "$control_url" -O "$tmp_control";

if ! wget -q -T 15 "$control_url" -O "$tmp_control"; then
echoe -e "${REDC}ERROR${NC}: Cannot download debian control file from '$control_url'!";
return 2;
fi

local sys_deps;
mapfile -t sys_deps < <(ODOO_VERSION="$odoo_version" install_parse_debian_control_file "$tmp_control");
install_sys_deps_internal "${sys_deps[@]}";
Expand Down Expand Up @@ -698,6 +703,8 @@ function install_build_python_guess_version {
echo "3.8.13";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 16 ]; then
echo "3.8.13";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 17 ]; then
echo "3.10.13";
else
echoe -e "${REDC}ERROR${NC}: Automatic detection of python version for odoo ${ODOO_VERSION} is not supported!";
return 1;
Expand Down
2 changes: 2 additions & 0 deletions lib/odoo.bash
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ function odoo_ensure_python_version {
${python_interpreter} -c "import sys; assert (3, 7) <= sys.version_info < (3, 11);";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 16 ]; then
${python_interpreter} -c "import sys; assert (3, 7) <= sys.version_info < (3, 11);";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 17 ]; then
${python_interpreter} -c "import sys; assert sys.version_info > (3, 10);";
else
echoe -e "${REDC}ERROR${NC}: Automatic detection of python version for odoo ${ODOO_VERSION} is not supported!";
return 1;
Expand Down
2 changes: 1 addition & 1 deletion lib/version.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# Odoo Helper Scripts: Version

# Define version number
ODOO_HELPER_VERSION="1.4.0";
ODOO_HELPER_VERSION="1.5.0";
ODOO_HELPER_CONFIG_VERSION="1";
70 changes: 35 additions & 35 deletions tests/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -983,54 +983,54 @@ odoo-helper db drop odoo16-odoo-test;
#=================================
#${NC}"

#cd ../;
cd ../;

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

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

#odoo-install --install-dir odoo-17.0 --odoo-version 17.0 \
#--http-port 8569 --http-host local-odoo-16 \
#--db-user odoo16 --db-pass odoo --create-db-user \
#--build-python-if-needed
odoo-install --install-dir odoo-17.0 --odoo-version 17.0 \
--http-port 8569 --http-host local-odoo-17 \
--db-user odoo17 --db-pass odoo --create-db-user \
--build-python-if-needed

#cd odoo-17.0;
cd odoo-17.0;

## Install py-tools and js-tools
#odoo-helper install py-tools;
#odoo-helper install js-tools;
# Install py-tools and js-tools
odoo-helper install py-tools;
odoo-helper install js-tools;

#odoo-helper server run --stop-after-init; # test that it runs
odoo-helper server run --stop-after-init; # test that it runs

## Show project status
#odoo-helper status;
#odoo-helper server status;
#odoo-helper start;
#odoo-helper ps;
#odoo-helper status;
#odoo-helper server status;
#odoo-helper stop;
# Show project status
odoo-helper status;
odoo-helper server status;
odoo-helper start;
odoo-helper ps;
odoo-helper status;
odoo-helper server status;
odoo-helper stop;

## Show complete odoo-helper status
#odoo-helper status --tools-versions --ci-tools-versions;
# Show complete odoo-helper status
odoo-helper status --tools-versions --ci-tools-versions;

## Database management
#odoo-helper db create --tdb --lang en_US;
# Database management
odoo-helper db create --tdb --lang en_US;

#odoo-helper addons update-list --tdb;
#odoo-helper addons install --tdb --module crm;
#odoo-helper addons test-installed crm;
odoo-helper addons update-list --tdb;
odoo-helper addons install --tdb --module crm;
odoo-helper addons test-installed crm;

#odoo-helper lsd; # List databases
odoo-helper lsd; # List databases

### Install addon website via 'odoo-helper install'
#odoo-helper install website;
## Install addon website via 'odoo-helper install'
odoo-helper install website;

## Drop created databases
#odoo-helper db drop odoo17-odoo-test;
# Drop created databases
odoo-helper db drop odoo17-odoo-test;


echo -e "${YELLOWC}
Expand Down

0 comments on commit 7a21f66

Please sign in to comment.