From bed8e4cf2dbe2694bb3b7ba2c226d62ee07dedd2 Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Fri, 29 Oct 2021 14:45:38 +0200 Subject: [PATCH] [MIG]hr_holidays_validity_date from 13.0 to 15.0 --- hr_holidays_validity_date/__manifest__.py | 3 ++- hr_holidays_validity_date/models/hr_leave.py | 2 +- hr_holidays_validity_date/views/hr_holidays_view.xml | 2 +- .../odoo/addons/hr_holidays_validity_date | 1 + setup/hr_holidays_validity_date/setup.py | 6 ++++++ 5 files changed, 11 insertions(+), 3 deletions(-) create mode 120000 setup/hr_holidays_validity_date/odoo/addons/hr_holidays_validity_date create mode 100644 setup/hr_holidays_validity_date/setup.py diff --git a/hr_holidays_validity_date/__manifest__.py b/hr_holidays_validity_date/__manifest__.py index a0857c4e..dcbf29aa 100644 --- a/hr_holidays_validity_date/__manifest__.py +++ b/hr_holidays_validity_date/__manifest__.py @@ -7,9 +7,10 @@ "author": "ACSONE SA/NV, Odoo Community Association (OCA)", "website": "https://github.com/OCA/hr-holidays", "category": "Human Resources", - "version": "13.0.1.0.0", + "version": "15.0.1.0.0", "license": "AGPL-3", "depends": ["hr_holidays"], "data": ["views/hr_holidays_view.xml"], + "development_status": "Production/Stable", "installable": True, } diff --git a/hr_holidays_validity_date/models/hr_leave.py b/hr_holidays_validity_date/models/hr_leave.py index 9096c2a3..8ec0dfe3 100644 --- a/hr_holidays_validity_date/models/hr_leave.py +++ b/hr_holidays_validity_date/models/hr_leave.py @@ -40,4 +40,4 @@ def _compute_warning_range(self): def _check_leave_type_validity(self): if not self.env.context.get("compute_warning_range", False): self = self.filtered("restrict_dates") - super(HolidaysRequest, self)._check_leave_type_validity() + return super(HolidaysRequest, self)._check_leave_type_validity() diff --git a/hr_holidays_validity_date/views/hr_holidays_view.xml b/hr_holidays_validity_date/views/hr_holidays_view.xml index f6cd193c..1ed18c9d 100644 --- a/hr_holidays_validity_date/views/hr_holidays_view.xml +++ b/hr_holidays_validity_date/views/hr_holidays_view.xml @@ -5,7 +5,7 @@ hr.leave.type - + diff --git a/setup/hr_holidays_validity_date/odoo/addons/hr_holidays_validity_date b/setup/hr_holidays_validity_date/odoo/addons/hr_holidays_validity_date new file mode 120000 index 00000000..ddef4aca --- /dev/null +++ b/setup/hr_holidays_validity_date/odoo/addons/hr_holidays_validity_date @@ -0,0 +1 @@ +../../../../hr_holidays_validity_date \ No newline at end of file diff --git a/setup/hr_holidays_validity_date/setup.py b/setup/hr_holidays_validity_date/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/hr_holidays_validity_date/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)