Skip to content

Commit

Permalink
Merge pull request #89 from opus-codium/switch-wkhtmltopdf-source
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex authored Jan 27, 2025
2 parents 8c5c008 + 9f40c3a commit 9f451ae
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ Data type: `String[1]`

Version of wkhtmltox to install when wkhtmltopdf is set to wkhtmltox

Default value: `undef`
Default value: `'0.12.6.1'`

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

Expand Down
2 changes: 0 additions & 2 deletions data/Debian/Ubuntu/20.04.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions data/common.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
class odoo (
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,
String[1] $wkhtmltox_version = '0.12.6.1',
Optional[Enum['wkhtmltox']] $wkhtmltopdf = undef,

Boolean $manage_package = true,
Expand Down
2 changes: 1 addition & 1 deletion manifests/wkhtmltox.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class odoo::wkhtmltox {
assert_private()

$wkhtmltox_url = "https://github.com/wkhtmltopdf/packaging/releases/download/${odoo::wkhtmltox_version}/wkhtmltox_${odoo::wkhtmltox_version}.${facts.get('os.distro.codename')}_${facts.get('os.architecture')}.deb"
$wkhtmltox_url = "https://github.com/newinnovations/wkhtml-packaging/releases/download/v${odoo::wkhtmltox_version}/wkhtmltox_${odoo::wkhtmltox_version}-${facts.get('os.distro.codename')}_${facts.get('os.architecture')}.deb"

$wkhtmltox_dependencies = $facts.get('os.name') ? {
'Debian' => [
Expand Down

0 comments on commit 9f451ae

Please sign in to comment.