Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17] [ADD] : Added 'saudi_gosi' module & Updated to support Odoo 17.0 #105

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions saudi_gosi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Open HRMS Saudi GOSI Contribution
=================================

When HR Manager will generate payslip system will automatic calculate GOSI if GOSI detail exist on employee personal information.And
also allows to print the pdf reports of those Contribution registers.


Installation
============
- www.odoo.com/documentation/16.0/setup/install.html
- Install our custom addon

License
=======
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3)
(http://www.gnu.org/licenses/agpl.html)

Bug Tracker
===========
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.

Credits
=======
* Cybrosys Techno Solutions <https://www.cybrosys.com>

Author
------

Developer: Sayooj A O @ Cybrosys
V14 Ijaz @ Cybrosys
V15 Jibin @ Cybrosys

Maintainer
----------

This module is maintained by Cybrosys Technologies.

For support and more information, please visit https://www.cybrosys.com.

22 changes: 22 additions & 0 deletions saudi_gosi/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions([email protected])
#
# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models
44 changes: 44 additions & 0 deletions saudi_gosi/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions([email protected])
#
# 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': "Open HRMS GOSI",
'version': '17.0.1.0.0',
'summary': """GOSI Contribution for Saudi Government""",
'description': """GOSI Contribution for Saudi Government From Employee and Company""",
'category': 'Human Resource',
'author': 'Cybrosys Techno solutions,Open HRMS',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'live_test_url': 'https://youtu.be/AedTkYdKu8s',
'website': "https://www.openhrms.com",
'depends': ['base', 'hr', 'hr_payroll_community'],
'data': [
'views/gosi_view.xml',
'views/sequence.xml',
'data/rule.xml',
'security/ir.model.access.csv',
],
'images': ['static/description/banner.png'],
'license': "AGPL-3",
'installable': True,
'application': True,
}
Binary file added saudi_gosi/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added saudi_gosi/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
57 changes: 57 additions & 0 deletions saudi_gosi/data/rule.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record id="contribution_register_gosi" model="hr.contribution.register">
<field name="name">GOSI Contribution For Saudi Employee</field>
<field name="partner_id" eval="False"/>
</record>

<record id="contribution_register_gosicompany" model="hr.contribution.register">
<field name="name">GOSI Company Contribution For Saudi Employee</field>
<field name="partner_id" eval="False"/>
</record>
<record id="GOSI" model="hr.salary.rule.category">
<field name="name">GOSI</field>
<field name="code">GOSI</field>
</record>

<record id="hr_rule_gosi" model="hr.salary.rule">
<field name="name">GOSI Contribution For Saudi Employee</field>
<field name="sequence" eval="99"/>
<field name="code">GOSI</field>
<field name="category_id" ref="hr_payroll_community.DED"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = -((contract.wage+(contract.wage*3/12))*9/100)</field>
<field name="register_id" ref="contribution_register_gosi"/>
</record>


<record id="hr_rule_gosi_comp" model="hr.salary.rule">
<field name="name">GOSI Company Contribution For Saudi Employee</field>
<field name="sequence" eval="99"/>
<field name="code">GOSI_COMP</field>
<field name="category_id" ref="hr_payroll_community.COMP"/>
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">result = (((contract.wage+(contract.wage*3/12))*9/100)+(contract.wage*2/100))</field>
<field name="register_id" ref="contribution_register_gosicompany"/>
</record>

<record id="hr_payroll_community.structure_base" model="hr.payroll.structure">
<field name="code">BASE</field>
<field name="name">Base Salary Structure For Saudi Workers</field>
<field eval="[(6, 0, [ref('hr_rule_gosi'),ref('hr_payroll_community.hr_rule_basic'),ref('hr_payroll_community.hr_rule_net')
,ref('hr_payroll_community.hr_rule_taxable'),ref('hr_rule_gosi_comp')])]" name="rule_ids"/>
<field name="company_id" ref="base.main_company"/>
</record>

<record id="structure_1717" model="hr.payroll.structure">
<field name="code">BSOW</field>
<field name="name">Base Salary For Overseas Workers</field>
<field eval="[(6, 0, [ref('hr_payroll_community.hr_rule_basic'), ref('hr_payroll_community.hr_rule_net'),ref('hr_payroll_community.hr_rule_taxable')])]" name="rule_ids"/>
<field name="company_id" ref="base.main_company"/>
<field name="parent_id" ref="hr_payroll_community.structure_base"/>
</record>
</data>
</odoo>
7 changes: 7 additions & 0 deletions saudi_gosi/doc/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Module <saudi_gosi>

#### 05.11.2022
#### Version 16.0.1.0.0
##### ADD
- Initial commit for Open HRMS Project

Loading