From 3ff18b913d0ffcc3832141a36afc8f08c9d46f45 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Mon, 12 Aug 2024 14:57:20 +0530 Subject: [PATCH] Aug 12: [FIX] Bug Fixed 'employee_late_check_in' --- employee_late_check_in/README.rst | 10 +++++----- employee_late_check_in/__init__.py | 12 ++++++------ employee_late_check_in/__manifest__.py | 14 +++++++------- employee_late_check_in/models/__init__.py | 12 ++++++------ employee_late_check_in/models/hr_attendance.py | 14 ++++++-------- employee_late_check_in/models/hr_employee.py | 12 ++++++------ .../models/hr_employees_public.py | 12 ++++++------ employee_late_check_in/models/hr_payslip.py | 12 ++++++------ employee_late_check_in/models/late_check_in.py | 12 ++++++------ employee_late_check_in/models/res_company.py | 12 ++++++------ .../models/res_config_settings.py | 12 ++++++------ 11 files changed, 66 insertions(+), 68 deletions(-) diff --git a/employee_late_check_in/README.rst b/employee_late_check_in/README.rst index a290ac054..20cb2bed3 100755 --- a/employee_late_check_in/README.rst +++ b/employee_late_check_in/README.rst @@ -1,6 +1,6 @@ -.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg - :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html - :alt: License: LGPL-3 +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 Employee Late Check-in ====================== @@ -16,8 +16,8 @@ Company License ------- -* Lesser General Public License, Version 3 (LGPL v3). -(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) +* Affero General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) Credits ------- diff --git a/employee_late_check_in/__init__.py b/employee_late_check_in/__init__.py index 8e8f0faa8..d96aecdec 100755 --- a/employee_late_check_in/__init__.py +++ b/employee_late_check_in/__init__.py @@ -6,17 +6,17 @@ # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################. +############################################################################# from . import models diff --git a/employee_late_check_in/__manifest__.py b/employee_late_check_in/__manifest__.py index 5313bc384..a6222883d 100755 --- a/employee_late_check_in/__manifest__.py +++ b/employee_late_check_in/__manifest__.py @@ -6,19 +6,19 @@ # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################. +############################################################################# { 'name': 'Employee Late Check-in', 'version': '16.0.1.0.0', @@ -49,7 +49,7 @@ 'views/hr_payslip_views.xml', ], 'images': ['static/description/banner.png'], - 'license': 'LGPL-3', + 'license': 'AGPL-3', 'installable': True, 'auto_install': False, 'application': False, diff --git a/employee_late_check_in/models/__init__.py b/employee_late_check_in/models/__init__.py index b962e565d..c7f67690c 100755 --- a/employee_late_check_in/models/__init__.py +++ b/employee_late_check_in/models/__init__.py @@ -6,19 +6,19 @@ # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################. +############################################################################# from . import hr_attendance from . import hr_employee from . import hr_employees_public diff --git a/employee_late_check_in/models/hr_attendance.py b/employee_late_check_in/models/hr_attendance.py index 3bdaa11bf..c599a8e60 100755 --- a/employee_late_check_in/models/hr_attendance.py +++ b/employee_late_check_in/models/hr_attendance.py @@ -6,19 +6,19 @@ # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################. +############################################################################# import pytz from datetime import datetime, timedelta from odoo import api,fields, models @@ -76,11 +76,9 @@ class HrAttendance(models.Model): max_limit = int(self.env['ir.config_parameter'].sudo().get_param( 'employee_late_check_in.maximum_minutes')) or 0 for rec in self.sudo().search([]): - print(rec,minutes_after) if rec.id not in self.env['late.check.in'].sudo().search( []).attendance_id.ids: if minutes_after < rec.late_check_in < max_limit: - print(rec,'rec') self.env['late.check.in'].sudo().create({ 'employee_id': rec.employee_id.id, 'late_minutes': rec.late_check_in, diff --git a/employee_late_check_in/models/hr_employee.py b/employee_late_check_in/models/hr_employee.py index f7bf0fec9..8789b25bb 100755 --- a/employee_late_check_in/models/hr_employee.py +++ b/employee_late_check_in/models/hr_employee.py @@ -6,19 +6,19 @@ # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################. +############################################################################# from odoo import _, fields, models diff --git a/employee_late_check_in/models/hr_employees_public.py b/employee_late_check_in/models/hr_employees_public.py index b92699289..917bbe7da 100755 --- a/employee_late_check_in/models/hr_employees_public.py +++ b/employee_late_check_in/models/hr_employees_public.py @@ -6,19 +6,19 @@ # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################. +############################################################################# from odoo import _, fields, models diff --git a/employee_late_check_in/models/hr_payslip.py b/employee_late_check_in/models/hr_payslip.py index 6d61fada4..de7595c7b 100755 --- a/employee_late_check_in/models/hr_payslip.py +++ b/employee_late_check_in/models/hr_payslip.py @@ -6,19 +6,19 @@ # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################. +############################################################################# from odoo import api, fields, models diff --git a/employee_late_check_in/models/late_check_in.py b/employee_late_check_in/models/late_check_in.py index 2da79495c..797e5d28a 100755 --- a/employee_late_check_in/models/late_check_in.py +++ b/employee_late_check_in/models/late_check_in.py @@ -6,19 +6,19 @@ # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################. +############################################################################# from odoo import api, fields, models diff --git a/employee_late_check_in/models/res_company.py b/employee_late_check_in/models/res_company.py index 4584c77de..75759f091 100755 --- a/employee_late_check_in/models/res_company.py +++ b/employee_late_check_in/models/res_company.py @@ -6,19 +6,19 @@ # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################. +############################################################################# from odoo import fields, models diff --git a/employee_late_check_in/models/res_config_settings.py b/employee_late_check_in/models/res_config_settings.py index b00d25621..f1cf8de51 100755 --- a/employee_late_check_in/models/res_config_settings.py +++ b/employee_late_check_in/models/res_config_settings.py @@ -6,19 +6,19 @@ # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Cybrosys Techno Solutions() # -# You can modify it under the terms of the GNU LESSER -# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. # -# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE -# (LGPL v3) along with this program. +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. # If not, see . # -############################################################################. +############################################################################# from odoo import fields, models