diff --git a/hr_multi_company/README.md b/hr_multi_company/README.md new file mode 100644 index 000000000..92115909a --- /dev/null +++ b/hr_multi_company/README.md @@ -0,0 +1,17 @@ +OHRMS Multi Company +--------------------- +Supporting Addon for Open HRMS, Added Advance Fields On Employee Master + +Connect with experts +-------------------- + +If you have any question/queries/additional works on OpenHRMS or this module, You can drop an email directly to Cybrosys. + +Contacts +-------- +info - info@cybrosys.com +Jesni Banu - jesni@cybrosys.in + +Website: +https://www.openhrms.com +https://www.cybrosys.com diff --git a/hr_multi_company/__init__.py b/hr_multi_company/__init__.py new file mode 100644 index 000000000..9c6d6e056 --- /dev/null +++ b/hr_multi_company/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +################################################################################### +# A part of Open HRMS Project +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Jesni Banu () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +from . import models + + diff --git a/hr_multi_company/__manifest__.py b/hr_multi_company/__manifest__.py new file mode 100644 index 000000000..e0fa12908 --- /dev/null +++ b/hr_multi_company/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +################################################################################### +# A part of Open HRMS Project +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Jesni Banu () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +{ + 'name': 'Open HRMS Multi-Company', + 'version': '11.0.1.0.0', + 'summary': """Enables Multi-Company""", + 'description': 'This module enables multi company features', + 'category': 'Generic Modules/Human Resources', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "https://www.openhrms.com", + 'depends': ['base', 'hr_contract', 'hr_payroll', 'hr_expense', 'hr_attendance', 'hr_employee_transfer'], + 'data': [ + 'views/hr_company_view.xml', + 'views/multi_company_view.xml', + ], + 'demo': [], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/hr_multi_company/doc/RELEASE_NOTES.md b/hr_multi_company/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..7ee93a11c --- /dev/null +++ b/hr_multi_company/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 30.03.2018 +#### Version 11.0.1.0.0 +##### ADD +- Initial commit for Open HRMS Project diff --git a/hr_multi_company/models/__init__.py b/hr_multi_company/models/__init__.py new file mode 100644 index 000000000..0e2cb3558 --- /dev/null +++ b/hr_multi_company/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +################################################################################### +# A part of Open HRMS Project +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Jesni Banu () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +from . import hr_multi_company + diff --git a/hr_multi_company/models/__pycache__/__init__.cpython-35.pyc b/hr_multi_company/models/__pycache__/__init__.cpython-35.pyc new file mode 100644 index 000000000..3339b2195 Binary files /dev/null and b/hr_multi_company/models/__pycache__/__init__.cpython-35.pyc differ diff --git a/hr_multi_company/models/__pycache__/hr_multi_company.cpython-35.pyc b/hr_multi_company/models/__pycache__/hr_multi_company.cpython-35.pyc new file mode 100644 index 000000000..e14217c1f Binary files /dev/null and b/hr_multi_company/models/__pycache__/hr_multi_company.cpython-35.pyc differ diff --git a/hr_multi_company/models/hr_multi_company.py b/hr_multi_company/models/hr_multi_company.py new file mode 100644 index 000000000..2f30de346 --- /dev/null +++ b/hr_multi_company/models/hr_multi_company.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +################################################################################### +# A part of Open HRMS Project +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2018-TODAY Cybrosys Technologies (). +# Author: Jesni Banu () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### +from odoo import models, fields + + +class HrAttendanceMultiCompany(models.Model): + _inherit = 'hr.attendance' + + company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, + default=lambda self: self.env.user.company_id) + + +class HrLeaveMultiCompany(models.Model): + _inherit = 'hr.holidays' + + company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, + default=lambda self: self.env.user.company_id) + + +class HrPayslipMultiCompany(models.Model): + _inherit = 'hr.payslip.run' + + company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, + default=lambda self: self.env.user.company_id) + + +class HrSalaryCategoryMultiCompany(models.Model): + _inherit = 'hr.salary.rule.category' + + company_id = fields.Many2one('res.company', 'Company', copy=False, readonly=True, + default=lambda self: self.env.user.company_id) diff --git a/hr_multi_company/static/description/HRMS-BUTTON.png b/hr_multi_company/static/description/HRMS-BUTTON.png new file mode 100644 index 000000000..0f1b65bea Binary files /dev/null and b/hr_multi_company/static/description/HRMS-BUTTON.png differ diff --git a/hr_multi_company/static/description/banner.jpg b/hr_multi_company/static/description/banner.jpg new file mode 100644 index 000000000..08b67a194 Binary files /dev/null and b/hr_multi_company/static/description/banner.jpg differ diff --git a/hr_multi_company/static/description/cybro-service.png b/hr_multi_company/static/description/cybro-service.png new file mode 100644 index 000000000..252929a86 Binary files /dev/null and b/hr_multi_company/static/description/cybro-service.png differ diff --git a/hr_multi_company/static/description/cybro_logo.png b/hr_multi_company/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/hr_multi_company/static/description/cybro_logo.png differ diff --git a/hr_multi_company/static/description/icon.png b/hr_multi_company/static/description/icon.png new file mode 100644 index 000000000..1dbe70d04 Binary files /dev/null and b/hr_multi_company/static/description/icon.png differ diff --git a/hr_multi_company/static/description/index.html b/hr_multi_company/static/description/index.html new file mode 100644 index 000000000..ac29ef9b3 --- /dev/null +++ b/hr_multi_company/static/description/index.html @@ -0,0 +1,108 @@ +
+
+

Open HRMS

+

Most advanced open source HR management software

+
+
+ +
+
+
+
+ + + + +
+
+
+
+ +
+
+

Open HRMS Multi Company

+

Managing Multi Company In HR Processes

+

Cybrosys Technologies

+
+
+

Features:

+
+ Managing multi company.
+
+
+
+ +
+
+
+

Overview

+

+ This module enables hr multi company, hence hr manager can easily handle + multi company process separately. We can activate multi company feature in general settings as usual. + This will automatically add company field in every hr related records. +

+
+
+
+ +
+
+

Multi Company In Leaves

+
+
+ +
+
+
+
+ +
+
+

Multi Company In Attendance

+
+
+ +
+
+
+
+ +
+
+

Our Odoo Services

+
+
+
+ + + +
+
+
+ +
+

Need Any Help?

+ +
diff --git a/hr_multi_company/static/description/multi_company.png b/hr_multi_company/static/description/multi_company.png new file mode 100644 index 000000000..34ad6464b Binary files /dev/null and b/hr_multi_company/static/description/multi_company.png differ diff --git a/hr_multi_company/static/description/oh_attendance.png b/hr_multi_company/static/description/oh_attendance.png new file mode 100644 index 000000000..ef8539c53 Binary files /dev/null and b/hr_multi_company/static/description/oh_attendance.png differ diff --git a/hr_multi_company/views/hr_company_view.xml b/hr_multi_company/views/hr_company_view.xml new file mode 100644 index 000000000..b4dde2cfe --- /dev/null +++ b/hr_multi_company/views/hr_company_view.xml @@ -0,0 +1,57 @@ + + + + hr.holidays.form.view1 + hr.holidays + + + + + + + + + + hr.contract.form.view1 + hr.contract + + + + + + + + + + hr.attendance.form.view1 + hr.attendance + + + + + + + + + + hr.payslip.run.form.view1 + hr.payslip.run + + + + + + + + + + hr.salary.rule.category.form.view1 + hr.salary.rule.category + + + + + + + + \ No newline at end of file diff --git a/hr_multi_company/views/multi_company_view.xml b/hr_multi_company/views/multi_company_view.xml new file mode 100644 index 000000000..cd819e0e0 --- /dev/null +++ b/hr_multi_company/views/multi_company_view.xml @@ -0,0 +1,72 @@ + + + + Department Create, Write, Unlink + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + Salary rules of my Company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + Salary structures of my Company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + Payslips batches of my Company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + Payslips of my Company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + Salary Category of my Company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + Payslips Contribution of my Company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + Attendance of my Company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + Holidays of my Company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + + + Expense of my Company + + + ['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])] + + \ No newline at end of file