Skip to content

Commit

Permalink
Merge pull request #88 from NeatNerdPrime/add-odoo-18-support
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex authored Jan 26, 2025
2 parents cc16676 + a069884 commit 8c5c008
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ The following parameters are available in the `odoo` class:

##### <a name="-odoo--version"></a>`version`

Data type: `Enum['10.0', '11.0', '12.0', '13.0', '14.0', '15.0', '16.0', '17.0', 'system']`
Data type: `Enum['10.0', '11.0', '12.0', '13.0', '14.0', '15.0', '16.0', '17.0', '18.0', 'system']`

The version of odoo to install

Expand Down
2 changes: 1 addition & 1 deletion manifests/dependencies.pp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
$odoo_pip_packages = {}
}
default: {
warning("Please contribute support for ubuntu ${facts.get('os.release.full')}")
warning("Please contribute support for Debian ${facts.get('os.release.full')}")
$odoo_dependencies = []
$odoo_pip_packages = {}
}
Expand Down
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
# @param limit_time_real_cron Maximum allowed Real time per cron job
# @param limit_request Maximum number of request to be processed per worker
class odoo (
Enum['10.0', '11.0', '12.0', '13.0', '14.0', '15.0', '16.0', '17.0', 'system'] $version = undef,
Enum['10.0', '11.0', '12.0', '13.0', '14.0', '15.0', '16.0', '17.0', '18.0', 'system'] $version = undef,

String[1] $wkhtmltox_version = undef,
Optional[Enum['wkhtmltox']] $wkhtmltopdf = undef,
Expand Down Expand Up @@ -195,7 +195,7 @@
$odoo_supported_versions = {
'Debian' => {
'11' => ['14.0', '15.0', '16.0', 'system'],
'12' => ['14.0', '15.0', '16.0', '17.0'],
'12' => ['14.0', '15.0', '16.0', '17.0', '18.0'],
},
'Ubuntu' => {
'20.04' => ['11.0', '12.0', '13.0', '14.0', '15.0', '16.0'],
Expand Down
5 changes: 3 additions & 2 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
case $facts.get('os.family') {
'debian': {
apt::source { 'odoo':
location => "http://nightly.odoo.com/${odoo::version}/nightly/deb/",
location => "https://nightly.odoo.com/${odoo::version}/nightly/deb/",
release => '',
repos => './',
key => {
id => '5D134C924CB06330DCEFE2A1DEF2A2198183CBB5',
name => 'odoo.key',
source => 'https://nightly.odoo.com/odoo.key',
},
include => {
src => false,
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/odoo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def odoo_supported_versions
{
'Debian' => {
'11' => ['14.0', '15.0', '16.0', 'system'],
'12' => ['14.0', '15.0', '16.0', '17.0'],
'12' => ['14.0', '15.0', '16.0', '17.0', '18.0'],
},
'Ubuntu' => {
'20.04' => ['11.0', '12.0', '13.0', '14.0', '15.0', '16.0'],
Expand Down

0 comments on commit 8c5c008

Please sign in to comment.