From 165f8791b66443022cba1557a32b051bde5d1cf1 Mon Sep 17 00:00:00 2001 From: Sreejith P Date: Tue, 5 Jun 2018 08:58:40 +0530 Subject: [PATCH] [UPTD] Index updated --- developer_mode/README.rst | 4 +- developer_mode/__init__.py | 2 +- developer_mode/__manifest__.py | 2 +- developer_mode/controllers/__init__.py | 2 +- developer_mode/controllers/main.py | 2 +- employee_check_list/__init__.py | 2 +- employee_check_list/__manifest__.py | 2 +- employee_check_list/models/__init__.py | 3 +- .../models/employee_master_inherit.py | 2 +- employee_check_list/models/settings.py | 2 +- employee_documents_expiry/README.md | 4 +- employee_documents_expiry/__init__.py | 2 +- employee_documents_expiry/__manifest__.py | 2 +- employee_documents_expiry/__manifest__.py~ | 45 +++++++++++++++++ employee_documents_expiry/models/__init__.py | 2 +- .../models/employee_documents.py | 2 +- .../models/employee_entry_exit_check_list.py | 2 +- .../models/employee_entry_exit_check_list.py~ | 48 +++++++++++++++++++ 18 files changed, 111 insertions(+), 19 deletions(-) create mode 100644 employee_documents_expiry/__manifest__.py~ create mode 100644 employee_documents_expiry/models/employee_entry_exit_check_list.py~ diff --git a/developer_mode/README.rst b/developer_mode/README.rst index 4e3a93258..aff9a2221 100644 --- a/developer_mode/README.rst +++ b/developer_mode/README.rst @@ -11,8 +11,8 @@ Odoo Developers, Keep smiling for the below reasons: Credits ------- -* `Niyas Raphy < niyas@cybsosys.in >`__ -* `Saritha S < saritha@cybsosys.in >`__ +* `Nilmar Shereef < shereef@cybsosys.in >`__ +* `Saritha < saritha@cybsosys.in >`__ Further information diff --git a/developer_mode/__init__.py b/developer_mode/__init__.py index c1bff0722..9e8b0b349 100644 --- a/developer_mode/__init__.py +++ b/developer_mode/__init__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/developer_mode/__manifest__.py b/developer_mode/__manifest__.py index db295a2f3..a3ebf93a7 100644 --- a/developer_mode/__manifest__.py +++ b/developer_mode/__manifest__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/developer_mode/controllers/__init__.py b/developer_mode/controllers/__init__.py index f2f0d856a..619523c05 100644 --- a/developer_mode/controllers/__init__.py +++ b/developer_mode/controllers/__init__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/developer_mode/controllers/main.py b/developer_mode/controllers/main.py index fb17da8f7..ab749781e 100644 --- a/developer_mode/controllers/main.py +++ b/developer_mode/controllers/main.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/employee_check_list/__init__.py b/employee_check_list/__init__.py index 8a2a8ef9b..ba5a7b9a4 100644 --- a/employee_check_list/__init__.py +++ b/employee_check_list/__init__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/employee_check_list/__manifest__.py b/employee_check_list/__manifest__.py index 6eb624cb2..4cec9b96f 100644 --- a/employee_check_list/__manifest__.py +++ b/employee_check_list/__manifest__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/employee_check_list/models/__init__.py b/employee_check_list/models/__init__.py index f7bcba3a0..6f5c4aa76 100644 --- a/employee_check_list/models/__init__.py +++ b/employee_check_list/models/__init__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as @@ -22,4 +22,3 @@ from . import employee_master_inherit from . import settings - diff --git a/employee_check_list/models/employee_master_inherit.py b/employee_check_list/models/employee_master_inherit.py index 98a3d9707..26a6ad05c 100644 --- a/employee_check_list/models/employee_master_inherit.py +++ b/employee_check_list/models/employee_master_inherit.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/employee_check_list/models/settings.py b/employee_check_list/models/settings.py index c901338ad..0aa5c7f2b 100644 --- a/employee_check_list/models/settings.py +++ b/employee_check_list/models/settings.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/employee_documents_expiry/README.md b/employee_documents_expiry/README.md index b99bec134..bc2b93c7d 100644 --- a/employee_documents_expiry/README.md +++ b/employee_documents_expiry/README.md @@ -21,6 +21,6 @@ Contacts info - info@cybrosys.com Cybrosys Odoo - odoo@cybrosys.com -Niyas Raphy - niyas@cybrosys.in - +Nilmar Shereef - shereef@cybrosys.in +Jesni Banu - jesni@cybrosys.in diff --git a/employee_documents_expiry/__init__.py b/employee_documents_expiry/__init__.py index 8b5ef333d..4852b308f 100644 --- a/employee_documents_expiry/__init__.py +++ b/employee_documents_expiry/__init__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/employee_documents_expiry/__manifest__.py b/employee_documents_expiry/__manifest__.py index cfa4cb5da..0c9f1b43f 100644 --- a/employee_documents_expiry/__manifest__.py +++ b/employee_documents_expiry/__manifest__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/employee_documents_expiry/__manifest__.py~ b/employee_documents_expiry/__manifest__.py~ new file mode 100644 index 000000000..9aef8c8a3 --- /dev/null +++ b/employee_documents_expiry/__manifest__.py~ @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Nilmar Shereef() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +{ + 'name': 'Employee Documents', + 'version': '10.0.2.0', + 'summary': """Manages Employee Documents With Expiry Notifications.""", + 'description': """Manages Employee Related Documents with Expiry Notifications.""", + 'category': 'Generic Modules/Human Resources', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'hr'], + 'data': [ + 'security/ir.model.access.csv', + 'views/employee_check_list_view.xml', + 'views/employee_document_view.xml', + ], + 'demo': ['data/data.xml'], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/employee_documents_expiry/models/__init__.py b/employee_documents_expiry/models/__init__.py index 2fd41e613..4aa9efb22 100644 --- a/employee_documents_expiry/models/__init__.py +++ b/employee_documents_expiry/models/__init__.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/employee_documents_expiry/models/employee_documents.py b/employee_documents_expiry/models/employee_documents.py index b71934a37..1c654251f 100644 --- a/employee_documents_expiry/models/employee_documents.py +++ b/employee_documents_expiry/models/employee_documents.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/employee_documents_expiry/models/employee_entry_exit_check_list.py b/employee_documents_expiry/models/employee_entry_exit_check_list.py index 194399d8f..6c9305fbd 100644 --- a/employee_documents_expiry/models/employee_entry_exit_check_list.py +++ b/employee_documents_expiry/models/employee_entry_exit_check_list.py @@ -3,7 +3,7 @@ # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (). -# Author: Niyas Raphy () +# Author: Cybrosys Techno Solutions () # # This program is free software: you can modify # it under the terms of the GNU Affero General Public License (AGPL) as diff --git a/employee_documents_expiry/models/employee_entry_exit_check_list.py~ b/employee_documents_expiry/models/employee_entry_exit_check_list.py~ new file mode 100644 index 000000000..6fbd2c51d --- /dev/null +++ b/employee_documents_expiry/models/employee_entry_exit_check_list.py~ @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Nilmar Shereef() +# you can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +from odoo import models, fields, api + + +class EmployeeEntryDocuments(models.Model): + _name = 'employee.checklist' + _inherit = ['mail.thread', 'ir.needaction_mixin'] + _description = "Employee Documents" + + @api.multi + def name_get(self): + result = [] + for each in self: + if each.document_type == 'entry': + name = each.name + '_en' + elif each.document_type == 'exit': + name = each.name + '_ex' + elif each.document_type == 'other': + name = each.name + '_ot' + result.append((each.id, name)) + return result + + name = fields.Char(string='Document Name', copy=False, required=1) + document_type = fields.Selection([('entry', 'Entry Documents'), + ('exit', 'Exit Documents'), + ('other', 'Other')], string='Checklist Type', required=1) +