Skip to content

Commit

Permalink
Add l10n_ch_hr_payroll.
Browse files Browse the repository at this point in the history
Add some minor changes, based on pull request #66 comments.

Some changes in copyright

Fix  2 pep8 errors.

Fix error in big comment header.

Remove description from l10n_ch_hr_payroll/__openerp__.py file.

Add license key in __openerp__.py

Add OCA as author of OCA addons

In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.

Restarting 'l10n_ch_payroll' from a cleaner state

Corrected: removed trailing blank line at the end of 'models/hr_contract.py'

Restaured: the content of __openerp__.py, lots during the last git rebase.
Corrected: the contributors lists and the link to the corresponding website page explaining the details.

OCA Transbot updated translations from Transifex

OCA Transbot updated translations from Transifex

[UPD] prefix versions with 8.0

[MIG] Make modules uninstallable

Module ported to v8

Modify AM_C category

Change module name in __init__.py

Fix README wrong module name

Short header on __init__.py, hr_contract.py, hr_employee.py

OCA Transbot updated translations from Transifex

Add two more rules for family allocation

- ALFA_E_R
- ALFA_F_R

Add missing view to __openerp__.py

Fix version format

Fix author name

OCA Transbot updated translations from Transifex
  • Loading branch information
Sébastien Gendre authored and ecino committed Oct 26, 2020
1 parent e580a8a commit c2ba3e4
Show file tree
Hide file tree
Showing 15 changed files with 1,089 additions and 0 deletions.
93 changes: 93 additions & 0 deletions l10n_ch_hr_payroll/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3

Switzerland Payroll Rules
=========================

This module allows you to manage the salaries of your employees

** Features list :**
* Add Swiss salary rule categories
* Add Swiss salary rules
* Add children in school to employee
* Add LPP range to contract
* Add LPP Amount to contract.
* Add Holiday Rate to contract.

** For further information:**
* Payroll accounting: http://open-net.ch/blog/la-comptabilite-salariale-suisse-avec-odoo-1/tag/salaires-6

** Remarks: **
* To prevent overwriting your salary rules changes, an update from 1.0.8 and lower to 1.0.9 and higher creates duplicates of the salary rules. This is because with some migrated databases, one may encounter a difficulty with the existing rules (they can not be erased if they are already used). The solution is then to force the existing ones to be non-updatable. And this is done using an included pre-migration script.
* As this module proposes its own report (same as the original, but with its own footer), don't forget to make it non-updatable.
* If you choose to uninstall this module, you have to manually delete the rules.

Known issues / Roadmap
======================

V1.0.0: 2014-11-07/Sge
* Add Salary rule categories.
* Add Salary rules.
* Add Employee children in school.
* Add Contract LPP rate.

V1.0.1: 2014-11-11/Sge
* Set the 'LPP rate'' digits to 'Payroll Rate' decimal accuracy.

V1.0.2:
* Add some minor changes, based on pull request #66 comments.

V1.0.3-4:
* Add LPP Amount to contract.
* Add Worked Hours Rate to contract.
* Add Hourly Rate to contract.
* Compute the Wage of contract, based on Worked Hours and Hourly Rate.
* Add new salay rules

V1.0.5:
* Add Holiday Rate to contract.
* Update "Indemnité vacances 8,33%" rule to include
"Holiday Rate" from contract.

V1.0.6:
* Move salary rules from CSV file to XML file.
* Import salary rules only at install.
* Internal reorganization of files (.py and .xml).

V1.0.7:
* Added: two new dependencies (hr_contract and hr_attendance)

V1.0.8:
* Updated: the "Appears on slip" settings
* Integrated: report for the payslip, with its own footer
* Added: a pre-migration script
* pre-migration script correctly set

V1.1:
* New: commissions and reimbursements management in pay slips and contracts

V1.2:
* Journal entries generated by the confirmation of a payslip now inherits correctly of the partner's name
V1.3:
* Move commission and reimbursement management to hr_payroll_commission and hr_payroll_expense modules

Contributors
------------

* Sebastien Gendre <[email protected]>
* Yvon-Philippe Crittin <[email protected]>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
5 changes: 5 additions & 0 deletions l10n_ch_hr_payroll/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# © 2012 David Coninckx (Opennet Sarl)
# License into __openerp__.py.

from . import models
55 changes: 55 additions & 0 deletions l10n_ch_hr_payroll/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# -*- coding: utf-8 -*-
#
# File: __openerp__.py
# Module: l10n_ch_hr_payroll
#
# Created by [email protected]
#
# Copyright (c) 2014-TODAY Open-Net Ltd. <http://www.open-net.ch>
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-TODAY OpenERP S.A. <http://www.openerp.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License 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 <http://www.gnu.org/licenses/>.
#
##############################################################################


{
'name': 'Switzerland - Payroll',
'summary': 'Swizerland Payroll Rules',
'category': 'Localization',
'author': "Open Net Sàrl,Odoo Community Association (OCA)",
'depends': [
'decimal_precision',
'hr_payroll',
'hr_payroll_account',
'hr_contract',
'hr_attendance',
'account'
],
'version': '9.0.1.3.0',
'auto_install': False,
'demo': [],
'website': 'http://open-net.ch',
'license': 'AGPL-3',
'data': [
'data/hr.salary.rule.category.xml',
'data/hr.salary.rule.xml',
'views/hr_employee_view.xml',
'views/hr_contract_view.xml'
],
'installable': True
}
37 changes: 37 additions & 0 deletions l10n_ch_hr_payroll/data/hr.salary.rule.category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
File: hr.salary.rule.category.xml
Module: l10n_ch_hr_payroll
Created by [email protected]
Copyright (c) 2014 Open-Net Ltd.
-->
<openerp>
<data noupdate="1">
<record id="hr_payroll_FALW" model="hr.salary.rule.category">
<field name="name">Free allowance</field>
<field name="code">FALW</field>
</record>
<record id="hr_payroll_COSTS" model="hr.salary.rule.category">
<field name="name">Full Company Contribution</field>
<field name="code">COSTS</field>
<field name="parent_id" ref="hr_payroll.ALW"/>
</record>
<record id="hr_payroll_P13" model="hr.salary.rule.category">
<field name="name">Yearly provisions</field>
<field name="code">P13</field>
<field name="parent_id" ref="hr_payroll.ALW"/>
</record>
<record id="hr_payroll_HSUP" model="hr.salary.rule.category">
<field name="name">Monthly Extra hours</field>
<field name="code">HSUP</field>
<field name="parent_id" ref="hr_payroll.DED"/>
</record>
<record id="hr_payroll_BONUS" model="hr.salary.rule.category">
<field name="name">Monthly Bonus</field>
<field name="code">BONUS</field>
<field name="parent_id" ref="hr_payroll.DED"/>
</record>
</data>
</openerp>
Loading

0 comments on commit c2ba3e4

Please sign in to comment.