From 15b0d5e30d9b841383424d5b0bfdac802b4bf379 Mon Sep 17 00:00:00 2001 From: Karl Southern Date: Sat, 12 Aug 2023 13:52:05 +0100 Subject: [PATCH] fix: as per OCA/pylint-odoo#426, underscores were replaced with dashes for configuration options, when pylilnt-odoo was bumped in oca-addons-repo-template#198 this change was not taken into account --- src/.pylintrc-mandatory.jinja | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/.pylintrc-mandatory.jinja b/src/.pylintrc-mandatory.jinja index 7b8b1c8..408fd2b 100644 --- a/src/.pylintrc-mandatory.jinja +++ b/src/.pylintrc-mandatory.jinja @@ -6,12 +6,21 @@ load-plugins=pylint_odoo score=n [ODOOLINT] +{%- if odoo_version < 16 %} readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" manifest_required_authors={{ org_name }} manifest_required_keys=license manifest_deprecated_keys=description,active license_allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 valid_odoo_versions={{ odoo_version }} +{%- else %} +readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" +manifest-required-authors={{ org_name }} +manifest-required-keys=license +manifest-deprecated-keys=description,active +license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3 +valid-odoo-versions={{ odoo_version }} +{%- endif %} [MESSAGES CONTROL] disable=all