Skip to content

Commit

Permalink
Added experimental support for Odoo 18
Browse files Browse the repository at this point in the history
  • Loading branch information
katyukha committed Oct 13, 2024
1 parent 2de904d commit 2de67a0
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 10 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

## Unreleased

### Added

- Experimental support for Odoo 18

---

## Release 1.5.1 (2024-04-01)

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ The canonical source of odoo-helper-scripts is hosted on [GitLab](https://gitlab
- *14.0*
- *15.0*
- *16.0*
- *17.0* (**Experimental**)
- *17.0*
- *18.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
3 changes: 2 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ please, read carefully [Usage notes](#usage-note) section.
- *14.0*
- *15.0*
- *16.0*
- *17.0* (**Experimental**)
- *17.0*
- *18.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
12 changes: 7 additions & 5 deletions lib/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -696,15 +696,17 @@ function install_build_python_guess_version {
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 12 ]; then
echo "3.7.13";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 13 ]; then
echo "3.8.13";
echo "3.8.20";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 14 ]; then
echo "3.8.13";
echo "3.8.20";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 15 ]; then
echo "3.8.13";
echo "3.8.20";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 16 ]; then
echo "3.8.13";
echo "3.8.20";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 17 ]; then
echo "3.10.13";
echo "3.10.15";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 18 ]; then
echo "3.10.15";
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 @@ -291,6 +291,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 17 ]; then
${python_interpreter} -c "import sys; assert sys.version_info > (3, 10);";
elif [ -n "$ODOO_VERSION" ] && [ "$(odoo_get_major_version)" -eq 18 ]; 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
63 changes: 60 additions & 3 deletions tests/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -977,15 +977,15 @@ odoo-helper test bureaucrat_knowledge
odoo-helper db drop odoo16-odoo-test;


#echo -e "${YELLOWC}
echo -e "${YELLOWC}
#=================================
#Install and check Odoo 17.0 (Py3)
#=================================
#${NC}"
${NC}"

cd ../;

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

Expand Down Expand Up @@ -1033,6 +1033,63 @@ odoo-helper install website;
odoo-helper db drop odoo17-odoo-test;


echo -e "${YELLOWC}
#=================================
#Install and check Odoo 18.0 (Py3)
#=================================
${NC}"

cd ../;

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

# Install odoo 18
odoo-helper install sys-deps -y 18.0;

odoo-install --install-dir odoo-18.0 --odoo-version 18.0 \
--http-port 8569 --http-host local-odoo-18 \
--db-user odoo18 --db-pass odoo --create-db-user \
--build-python-if-needed

cd odoo-18.0;

# 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

# 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;

# 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 lsd; # List databases

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

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



echo -e "${YELLOWC}
=============================================================
Run 'prepare-docs' script to test generation of help messages
Expand Down

0 comments on commit 2de67a0

Please sign in to comment.