From eb17399ecf566ccd34a5839607a0dce12d59c82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Sun, 29 Sep 2024 16:51:17 +0200 Subject: [PATCH] [MIG] version 17.0 --- .eslintrc.yml | 2 +- .gitignore | 9 +++++++++ .pre-commit-config.yaml | 17 +++++++++++++---- .pylintrc | 12 ++++++------ .pylintrc-mandatory | 2 +- README.rst | 1 + __init__.py | 2 -- __manifest__.py | 6 ++---- views/hr_timesheet_view.xml | 2 +- 9 files changed, 34 insertions(+), 19 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index fed88d7..0b38203 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -4,7 +4,7 @@ env: # See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449 parserOptions: - ecmaVersion: 2019 + ecmaVersion: 2022 overrides: - files: diff --git a/.gitignore b/.gitignore index d99361a..c9f4238 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,15 @@ var/ *.eggs .copier-answers.yml +# Debian packages +*.deb + +# Redhat packages +*.rpm + +# MacOS packages +*.dmg + # Installer logs pip-log.txt pip-delete-this-directory.txt diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3efb4d9..f58f2c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,6 +16,8 @@ exclude: | readme/.*\.(rst|md)$| # Ignore build and dist directories in addons /build/|/dist/| + # Ignore test files in addons + /tests/samples/.*| # You don't usually want a bot to modify your legal texts (LICENSE.*|COPYING.*) default_language_version: @@ -35,9 +37,14 @@ repos: name: en.po files cannot exist entry: found a en.po file language: fail - files: '[a-zA-Z0-9_]*/i18n/en\.po$' + files: + '[a-zA-Z0-9_]*/i18n/en\.po$' + # - repo: https://github.com/sbidoul/whool + # rev: v0.5 + # hooks: + # - id: whool-init - repo: https://github.com/oca/maintainer-tools - rev: f71041f22b8cd68cf7c77b73a14ca8d8cd190a60 + rev: d5fab7ee87fceee858a3d01048c78a548974d935 hooks: # update the NOT INSTALLABLE ADDONS section above - id: oca-update-pre-commit-excluded-addons @@ -46,11 +53,13 @@ repos: - id: oca-gen-addon-readme args: - --addons-dir=. - - --branch=16.0 + - --branch=17.0 - --org-name=lefilament - --repo-name=template_module - --if-source-changed - --keep-source-digest + - --convert-fragments-to-markdown + # - id: oca-gen-external-dependencies - repo: https://github.com/OCA/odoo-pre-commit-hooks rev: v0.0.25 hooks: @@ -104,7 +113,7 @@ repos: args: [--fix, --exit-non-zero-on-fix] - id: ruff-format - repo: https://github.com/OCA/pylint-odoo - rev: v8.0.19 + rev: v9.0.4 hooks: - id: pylint_odoo name: pylint with optional checks diff --git a/.pylintrc b/.pylintrc index 71c476d..4fb9ba5 100644 --- a/.pylintrc +++ b/.pylintrc @@ -5,12 +5,12 @@ load-plugins=pylint_odoo score=n [ODOOLINT] -readme_template_url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" -manifest_required_authors=Le Filament -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=16.0 +readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst" +manifest-required-authors=Le Filament +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=17.0 [MESSAGES CONTROL] disable=all diff --git a/.pylintrc-mandatory b/.pylintrc-mandatory index 9906493..42885e9 100644 --- a/.pylintrc-mandatory +++ b/.pylintrc-mandatory @@ -9,7 +9,7 @@ manifest-required-authors=Le Filament 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=16.0 +valid-odoo-versions=17.0 [MESSAGES CONTROL] disable=all diff --git a/README.rst b/README.rst index 00f82a7..f5203fa 100644 --- a/README.rst +++ b/README.rst @@ -11,6 +11,7 @@ Description =========== This module depends upon *hr_timesheet* and disallow project and task creation from timesheet. +Also, timesheet creation is made from top of tree view instead of bottom by default. Credits diff --git a/__init__.py b/__init__.py index 2bd2117..e69de29 100644 --- a/__init__.py +++ b/__init__.py @@ -1,2 +0,0 @@ -# © 2020 Le Filament (<https://www.le-filament.com>) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/__manifest__.py b/__manifest__.py index 7819cf1..fab8867 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,9 +1,6 @@ -# Copyright 2021-2022 Le Filament (https://le-filament.com) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - { "name": "HR Timesheet no create", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "author": "Le Filament", "category": "Services/Timesheets", "summary": "Disallow project and task creation from timesheet", @@ -14,6 +11,7 @@ "data": [ "views/hr_timesheet_view.xml", ], + "website": "https://le-filament.com", "demo": [], "installable": True, } diff --git a/views/hr_timesheet_view.xml b/views/hr_timesheet_view.xml index b0ca8fd..a499ddd 100644 --- a/views/hr_timesheet_view.xml +++ b/views/hr_timesheet_view.xml @@ -1,5 +1,5 @@ <?xml version="1.0" ?> -<!-- Copyright 2020-2022 Le Filament (https://le-filament.com) +<!-- Copyright 2020- Le Filament (https://le-filament.com) License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> <odoo> -- GitLab