Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
f8bbcad
payroll: rename module
davejames Oct 8, 2020
3369b5e
payroll: rename install setting for payroll_account module
davejames Oct 8, 2020
46b8684
payroll: add original pot file
davejames Oct 8, 2020
1b8cf26
payroll: update new POT file
davejames Oct 8, 2020
9da85df
[IMP] payroll: black, isort, prettier
hilarak Oct 28, 2020
2e90cd1
[MIG] payroll: Migration to 14.0
hilarak Oct 28, 2020
6cc9f62
[14.0][FIX] payroll: demo rule: python code with no indentation
norlinhenrik Dec 21, 2021
8514334
[14.0] payroll: new maintainer: appstogrow
norlinhenrik Dec 21, 2021
4145c2b
parent 830abfcae9440166206476c5b2c74932564483a1
nimarosa Jan 25, 2022
2f75018
add detail of the exeption in salary rule calculation
nimarosa Jan 31, 2022
cd2810a
[14.0] [IMP] Code fields for python compute fields
nimarosa Feb 15, 2022
e541387
Translated using Weblate (Catalan)
Noel000 Feb 28, 2022
7233f78
Translated using Weblate (Catalan)
Noel000 Mar 2, 2022
b8d51c3
Translated using Weblate (Spanish (Argentina))
ibuioli Mar 6, 2022
bf48c3e
Translated using Weblate (Spanish (Argentina))
ibuioli Mar 6, 2022
d83913c
Translated using Weblate (Spanish (Argentina))
ibuioli Mar 7, 2022
f815b0b
Translated using Weblate (Spanish (Argentina))
ibuioli Mar 13, 2022
e8682f8
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 31, 2022
cbc7e6f
Translated using Weblate (Italian)
francesco-ooops May 18, 2022
6e0e910
[ADD] payroll: missing tag to compute method
May 18, 2022
5e70930
[IMP] payroll: take into account the contract start date in payslip c…
nimarosa May 17, 2022
6fdf676
[IMP] payroll: recalculate worked_days and inputs if structure is cha…
nimarosa May 17, 2022
b0397ae
[IMP] payroll: add amount_qty to paylip inputs
nimarosa May 17, 2022
0d84274
[IMP] payroll: add missing states in status bar
nimarosa May 17, 2022
de6fba3
[IMP] payroll: ux changes in salary rules views
nimarosa May 17, 2022
9f91f2a
[IMP] payroll: add support for hr_public_holidays in work time calcul…
nimarosa Jun 3, 2022
383fd45
[IMP] payroll: remove empty lines
nimarosa Jun 3, 2022
6dfb731
Translated using Weblate (Spanish (Argentina))
ibuioli Jun 11, 2022
03ad0a8
[FIX] payroll unittest
mtelahun Jun 19, 2022
3167a23
[FIX] payroll - wrong quantity and rate during python computation of …
mtelahun Jun 19, 2022
f4f198b
[IMP] payroll: remove dependency on demo data
mtelahun Jun 21, 2022
cd503ac
[IMP] payroll: add a test to show that if result_* are not set they g…
mtelahun Jun 21, 2022
f6b3845
[IMP] payroll: refactor of local dictionary handling in payslip for s…
mtelahun Jun 19, 2022
5181471
Translated using Weblate (Spanish (Argentina))
nimarosa Jul 1, 2022
023bcc1
[IMP] payroll: Add salary_rule_parameters functionality
nimarosa Apr 6, 2022
88b9502
Translated using Weblate (Spanish)
nimarosa Jul 7, 2022
d4cde8d
Translated using Weblate (Spanish)
nimarosa Jul 19, 2022
28cec78
Translated using Weblate (Spanish (Argentina))
nimarosa Jul 19, 2022
3d37bb8
Translated using Weblate (Spanish (Argentina))
nimarosa Aug 9, 2022
3f4ec18
[IMP] payroll: payslip refactoring and functionality improvements
nimarosa Jul 1, 2022
121c2a9
[IMP] payroll: allow the use of positive values in leave days/hours c…
mtelahun Aug 11, 2022
9d71264
[IMP] payroll: Remove contract_advantage_template model and new modul…
nimarosa Jun 21, 2022
465aac4
Translated using Weblate (Spanish)
nimarosa Aug 16, 2022
09f05dd
Translated using Weblate (Spanish (Argentina))
nimarosa Aug 16, 2022
70435c3
[FIX] payroll: Fix Refactored _compute_name to contemplate more than …
nimarosa Aug 19, 2022
fc3887e
[FIX] payroll: use a custom working calendar so tests don't fail on w…
mtelahun Aug 21, 2022
be0c701
[IMP] payroll: send email with payslip, fix payslip form view, better…
norlinhenrik Aug 16, 2022
4fb6e9b
Translated using Weblate (Spanish)
nimarosa Aug 25, 2022
0549b84
Translated using Weblate (Spanish (Argentina))
ibuioli Aug 25, 2022
de135de
[IMP] payroll: Improve views, add child functionalities, allow comput…
nimarosa Aug 24, 2022
cbc92d3
Translated using Weblate (Spanish)
nimarosa Aug 29, 2022
2b0f030
Translated using Weblate (Spanish (Argentina))
nimarosa Aug 29, 2022
d68ead8
[IMP] payroll: hr.payslip.line with date_from
norlinhenrik Sep 2, 2022
f2f0827
[IMP] payroll: hr.payslip & hr.payslip.run: order by id desc (most re…
norlinhenrik Sep 2, 2022
4e112d2
[IMP] payroll: default value for python code fields had lines in the …
mtelahun Sep 5, 2022
8b9d3e7
[IMP] payroll: make hr.salary.rule (form) condition and computation v…
mtelahun Sep 5, 2022
8a4d3cd
[IMP] payroll: hr_payslip refactoring and misc improvements
nimarosa Aug 30, 2022
f8f59f1
[IMP] payroll: Add hook method for accesing localdict
nimarosa Sep 7, 2022
ff5dd71
[IMP] payroll: extract and move _sum_salary_rule_category to payslip
nimarosa Sep 7, 2022
cb7a8a8
[IMP] payroll: add new objects documentation in help text
nimarosa Sep 7, 2022
0d3c725
[IMP] payroll: remove ** from baselocadict
nimarosa Sep 8, 2022
04d0ee5
[IMP] payroll: remove sum from worked days table
nimarosa Sep 8, 2022
b9c96a1
[IMP] payroll: Add object for accessing with dot notation to the dict
nimarosa Sep 8, 2022
1a738f1
[IMP] payroll: Merge payslip_cancel in base module and remove module
nimarosa Sep 8, 2022
1384852
[IMP] payroll: Merge payslip_change_state and remove module
nimarosa Sep 8, 2022
edebb73
Translated using Weblate (Spanish)
nimarosa Sep 9, 2022
e70db27
Translated using Weblate (Spanish (Argentina))
nimarosa Sep 9, 2022
2436793
[IMP] payroll: add tests for new merged functionalities
nimarosa Sep 8, 2022
d316172
[IMP] payroll: change button attrs
nimarosa Sep 12, 2022
ab61d08
payroll: silence pylint W7950(odoo-addons-relative-import)
mtelahun Sep 13, 2022
6e3b62a
[FIX] payroll: regression introduced in #62
mtelahun Sep 13, 2022
16e65b0
[IMP] payroll: refactor tests.common to prepare for more tests
mtelahun Sep 16, 2022
264ecf6
[IMP] payroll: re-factor _get_contracts() to work on recordset self
mtelahun Sep 17, 2022
9462e54
[IMP] payroll: re-factor _get_salary_rules() to work on recordset self
mtelahun Sep 17, 2022
e862be5
[IMP] payroll: rename and re-factor _get_payslip_lines() to work on r…
mtelahun Sep 17, 2022
17d866f
[IMP] payroll: re-factor onchange_struct_id() to work on recordset self
mtelahun Sep 17, 2022
8f27f86
[IMP] payroll: re-factor onchange_dates() and onchange_employee() to …
mtelahun Sep 17, 2022
0fdf613
payroll: fix a couple of places where functional changes were inadver…
mtelahun Sep 17, 2022
fb2db04
[IMP] payroll: rule _satisfy_condition() & _compute_rule() -> 2*4 met…
norlinhenrik Sep 19, 2022
733f2ef
[IMP] payroll: rule._compute_rule() returns dict of values
norlinhenrik Sep 19, 2022
074cb3c
[IMP] payroll: rule._compute_rule_code() calls _get_rule_dict()
norlinhenrik Sep 19, 2022
371f522
[IMP] payroll: payslip.get_lines_dict() calls rule._reset_localdict_v…
norlinhenrik Sep 19, 2022
6da8d61
[IMP] payroll: payslip._compute_payslip_line() -> _compute_rule() & _…
norlinhenrik Sep 19, 2022
63c1292
[FIX] payroll_contract_advantages: Function name changed in recent co…
nimarosa Sep 20, 2022
5daac6c
[IMP] payroll: payslip._compute_payslip_line() & _get_lines_dict()
norlinhenrik Sep 20, 2022
a4050f8
[14.0] [FIX] payroll: Fix get_lines_dict() - skip assigning dict when…
nimarosa Sep 30, 2022
dd17bf9
[14.0] [IMP] payroll: support adding python libraries or objects to l…
nimarosa Sep 30, 2022
2570535
[14.0] [IMP] payroll: improve lines table view
nimarosa Sep 30, 2022
f3c9bd8
[14.0] [IMP] payroll: improve salary_rule and categories views and do…
nimarosa Oct 1, 2022
3980b92
[14.0] [IMP] payroll: settings for payslip_lines edition and auto-com…
nimarosa Oct 4, 2022
ff75467
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 9, 2022
c130da4
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 9, 2022
94d9aa8
[14.0] [FIX] payroll: Fix parent rules dependecy
nimarosa Oct 13, 2022
f9fe8d4
[14.0] [FIX] payroll: Add tests about parent/child rules
nimarosa Oct 19, 2022
d7e5831
[14.0] [ADD] hr_payroll_period
nimarosa Oct 24, 2022
ab93b6b
[14.0] [IMP] payroll: Add employee in rule exceptions
nimarosa Oct 27, 2022
a010deb
[IMP] payroll: hr.salary.rule is readonly for payroll user
norlinhenrik Oct 28, 2022
e73e9e9
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 2, 2022
6f4effe
[IMP] payroll: depends on base_time_parameter
norlinhenrik Nov 1, 2022
34b2541
[ADD] payroll_rule_time_parameter (instead of payroll) depends on bas…
norlinhenrik Nov 3, 2022
4679788
[IMP] payroll: history
norlinhenrik Nov 4, 2022
ba0b34d
[IMP] payroll: remove parameters code
nimarosa Nov 8, 2022
69af1d6
[14.0] [IMP] payroll: add localdict pure payslip object and rename pa…
nimarosa Nov 8, 2022
9d4332e
[14.0] [IMP] payroll: remove old tests from payroll module
nimarosa Nov 8, 2022
b6d9e4c
[14.0] [IMP] payroll: improve comments and documentation of available…
nimarosa Nov 8, 2022
76b1055
[14.0] [IMP] payroll: change manifest category
nimarosa Nov 8, 2022
2587a48
[IMP] payroll: hr.payslip.run with company_id
norlinhenrik Nov 6, 2022
4ff78b7
[IMP] payroll: code & category are not required
norlinhenrik Nov 6, 2022
8fbfde7
[IMP] payroll: settings descriptions, show_details_by_salary_rule_cat…
norlinhenrik Nov 6, 2022
7ba7826
[IMP] payroll: required fields, removed details_by_salary_rule_category
norlinhenrik Nov 6, 2022
2f8e40a
[IMP] payroll: hide_invisible_lines (who don't appear on payslip)
norlinhenrik Nov 7, 2022
2d6f85d
[IMP] payroll: New setting: Require code and category
norlinhenrik Nov 7, 2022
b388229
[IMP] payroll: test rule code in payslip line
norlinhenrik Nov 7, 2022
8ce99e4
[IMP] payroll: removed required=False, improved text descriptions
norlinhenrik Nov 8, 2022
83e84a6
[IMP] payroll: test rule and category with and without code
norlinhenrik Nov 9, 2022
5526c4b
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 9, 2022
e8d1cc1
[MIG] payroll: Migration to 15.0
mtelahun Nov 10, 2022
cf713c8
[MIG] payroll: Migration to 16.0
mtelahun Nov 11, 2022
256baec
[UPD] Update payroll.pot
Nov 11, 2022
83e00f9
[UPD] README.rst
OCA-git-bot Nov 11, 2022
394ecc1
Update translation files
weblate Nov 11, 2022
41fd14d
[UPD] Update payroll.pot
Nov 14, 2022
f7b430f
Update translation files
weblate Nov 14, 2022
161d6fd
[UPD] Update payroll.pot
Dec 1, 2022
e5ecea7
Update translation files
weblate Dec 1, 2022
5646b4e
[FIX] payroll: Change mail template expressions
victoralmau Apr 19, 2023
9d38ba3
[FIX] payroll: Fix tests since https://github.com/odoo/odoo/commit/09…
victoralmau Apr 20, 2023
1f42ed1
[UPD] Update payroll.pot
Apr 20, 2023
6458146
Update translation files
weblate Apr 20, 2023
ab2b25a
[UPD] Update payroll.pot
Jun 22, 2023
2ac82bd
Update translation files
weblate Jun 22, 2023
e7b95d0
[UPD] README.rst
OCA-git-bot Sep 3, 2023
22d87fb
[UPD] Update payroll.pot
Sep 22, 2023
5395ae9
Update translation files
weblate Sep 22, 2023
cecafa7
Added translation using Weblate (Persian (fa_IR))
mostafabarmshory Oct 7, 2023
5b0526f
Translated using Weblate (Persian)
mostafabarmshory Oct 7, 2023
b0897ad
Translated using Weblate (Spanish)
Ivorra78 Oct 9, 2023
121e025
Update translation files
weblate Oct 10, 2023
e1da2cd
Translated using Weblate (Italian)
mymage Oct 12, 2023
ab16745
[UPD] Update payroll.pot
Oct 28, 2023
49532cd
Update translation files
weblate Oct 29, 2023
4f24a2a
[17.0][MIG] payroll: Migration to 17.0
FernandoRomera Dec 21, 2023
a95b5aa
[FIX] Fix tests in payroll
cvinh Feb 3, 2024
ef4f10b
[FIX] struct_id force_save and test_get_contracts_singleton
hapolinario May 13, 2024
47aa5c2
[FIX] pre-commit ruff
hapolinario May 13, 2024
ab90e3e
[FIX] pre-commit ruff
hapolinario May 13, 2024
64d3e96
[FIX] field very narrow and show duplicate
hapolinario May 13, 2024
2144522
[UPD] Update payroll.pot
May 16, 2024
1a5a10e
Update translation files
weblate May 16, 2024
4062e74
Translated using Weblate (Italian)
mymage May 17, 2024
83d1eab
Translated using Weblate (Swedish)
jakobkrabbe Jun 7, 2024
325c7b9
Translated using Weblate (Italian)
mymage Aug 19, 2024
ad84f5f
[UPD] Update payroll.pot
Aug 19, 2024
83ec5f1
Update translation files
weblate Aug 19, 2024
f6fd9f4
[FIX] payroll: Remove migrations folder from 16.0
victoralmau Nov 11, 2024
c293c82
[IMP] payroll: pre-commit execution
regispirard Nov 16, 2024
8ff86a0
[MIG] payroll: Migration to 18.0
regispirard Nov 16, 2024
0237c4d
[FIX] payroll: labels missing for salary info fields
dreispt Dec 15, 2024
eca3b8c
[FIX] payroll: do not indent default code comments
dreispt Jan 3, 2025
5a42aa7
[UPD] Update payroll.pot
Jan 5, 2025
9306ec9
[BOT] post-merge updates
OCA-git-bot Jan 5, 2025
02005a7
Update translation files
weblate Jan 5, 2025
2e037ab
Translated using Weblate (Italian)
mymage Jan 5, 2025
ded3bcf
[IMP] payroll: UX improvements, better error messages
dreispt Jan 5, 2025
3374585
[UPD] Update payroll.pot
Jan 6, 2025
a46ea34
Update translation files
weblate Jan 6, 2025
85c0116
Translated using Weblate (Italian)
mymage Jan 7, 2025
3f49f62
Translated using Weblate (Italian)
mymage Jan 27, 2025
3d2888f
Update translation files
weblate May 13, 2025
1730139
Translated using Weblate (Italian)
mymage Jun 21, 2025
8061266
[IMP] payroll: Purge translations
victoralmau Mar 14, 2025
9a08a77
[FIX] payroll: Display Salary Structure form correctly
victoralmau Mar 12, 2025
14315ea
[IMP] payroll: Improve Payslip form view
victoralmau Mar 12, 2025
fd3cff3
[UPD] Update payroll.pot
Mar 14, 2025
eb80000
[BOT] post-merge updates
OCA-git-bot Mar 14, 2025
4a0eae0
Update translation files
weblate Mar 14, 2025
7cd881b
[FIX] payroll: error testing report printing
dreispt Jan 28, 2025
212aedc
[BOT] post-merge updates
OCA-git-bot Mar 30, 2025
703702a
[REF] payroll: use recordsets instead int lists
dreispt Feb 14, 2025
e0f50fb
[FIX] payroll: test could set contract end before start date
dreispt Apr 16, 2025
fd6b2ee
Translated using Weblate (Spanish (Venezuela))
macagua Apr 23, 2025
e0e340a
Translated using Weblate (Spanish)
macagua Apr 23, 2025
1d6b9a3
[UPD] Update payroll.pot
Jun 21, 2025
3be2370
Update translation files
weblate Jun 21, 2025
430c957
Translated using Weblate (Turkish)
tsezgin Sep 2, 2025
753f18a
Translated using Weblate (Turkish)
tsezgin Sep 16, 2025
570a02b
Translated using Weblate (Turkish)
tsezgin Sep 16, 2025
fac563e
Translated using Weblate (Turkish)
tsezgin Sep 16, 2025
d14dd4d
Translated using Weblate (Spanish (Venezuela))
macagua Apr 23, 2025
6b84635
Translated using Weblate (Spanish)
macagua Apr 23, 2025
29c5b4b
Translated using Weblate (Spanish)
macagua Apr 23, 2025
8ffc326
Translated using Weblate (Spanish (Venezuela))
macagua Apr 23, 2025
13301ca
Translated using Weblate (Spanish)
macagua Apr 23, 2025
ff6d766
Translated using Weblate (Spanish (Venezuela))
macagua Apr 23, 2025
93b604c
[BOT] post-merge updates
OCA-git-bot May 4, 2025
ff8236f
[18.0][FIX] payroll: Correct leaves and fix view
nimarosa May 5, 2025
ee781ad
[18.0][FIX] payroll: Fix tests to reflect new changes
nimarosa May 5, 2025
8b07969
[18.0][FIX] payroll: Check if leave has work_entry_type defined or fa…
nimarosa May 6, 2025
1f72ec9
[18.0][FIX] payroll: Check if leave has work_entry_type defined or fa…
nimarosa May 6, 2025
632a056
[UPD] Update payroll.pot
May 13, 2025
e3e4aad
[BOT] post-merge updates
OCA-git-bot May 13, 2025
3a38b3d
[IMP] payroll: pre-commit auto fixes
Oct 16, 2025
a06a3c6
[MIG] payroll: Migration to 19.0
Oct 17, 2025
fae0a70
[FIX] payroll: make again payslip name editable at draft state
dalonsod Dec 30, 2025
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
100 changes: 100 additions & 0 deletions payroll/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=======
Payroll
=======

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:27a7891dbd305ef29132f0d70f129f643ae73acaa7d1a9b80f989adbe1b2246a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpayroll-lightgray.png?logo=github
:target: https://github.com/OCA/payroll/tree/19.0/payroll
:alt: OCA/payroll
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/payroll-19-0/payroll-19-0-payroll
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/payroll&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Manage your employee payroll records.

This module is a backport from Odoo SA and as such, it is not included
in the OCA CLA. That means we do not have a copy of the copyright on it
like all other OCA modules.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/payroll/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/payroll/issues/new?body=module:%20payroll%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Odoo SA

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

- Odoo SA <[email protected]>
- David James <[email protected]>
- Hilar AK <[email protected]>
- Nimarosa (Nicolas Rodriguez) <[email protected]>
- Henrik Norlin (@appstogrow)
- Régis Pirard <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

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

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.

.. |maintainer-appstogrow| image:: https://github.com/appstogrow.png?size=40px
:target: https://github.com/appstogrow
:alt: appstogrow
.. |maintainer-nimarosa| image:: https://github.com/nimarosa.png?size=40px
:target: https://github.com/nimarosa
:alt: nimarosa

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-appstogrow| |maintainer-nimarosa|

This module is part of the `OCA/payroll <https://github.com/OCA/payroll/tree/19.0/payroll>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions payroll/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from . import models
from . import report
from . import wizard
44 changes: 44 additions & 0 deletions payroll/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.

{
"name": "Payroll",
"version": "19.0.1.0.0",
"category": "Payroll",
"website": "https://github.com/OCA/payroll",
"sequence": 38,
"summary": "Manage your employee payroll records",
"license": "LGPL-3",
"author": "Odoo SA, Odoo Community Association (OCA)",
"depends": [
"hr_holidays",
"mail",
],
"data": [
"security/hr_payroll_security.xml",
"security/ir.model.access.csv",
"data/hr_payroll_sequence.xml",
"data/hr_payroll_data.xml",
"wizard/hr_payroll_contribution_register_report_views.xml",
"wizard/hr_payroll_payslips_by_employees_views.xml",
"views/menus.xml",
"views/hr_contract_views.xml",
"views/hr_payroll_structure_views.xml",
"views/hr_salary_rule_category_views.xml",
"views/hr_contribution_register_views.xml",
"views/hr_salary_rule_views.xml",
"views/hr_payslip_line_views.xml",
"views/hr_payslip_views.xml",
"views/hr_payslip_run_views.xml",
"views/hr_employee_views.xml",
"views/report_contributionregister.xml",
"views/report_payslip.xml",
"views/report_payslipdetails.xml",
"report/report.xml",
"views/res_config_settings_views.xml",
"wizard/hr_payroll_send_email.xml",
"wizard/hr_payslip_change_state_view.xml",
],
"demo": ["demo/hr_payroll_demo.xml"],
"application": True,
"maintainers": ["appstogrow", "nimarosa"],
}
12 changes: 12 additions & 0 deletions payroll/data/hr_payroll_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Decimal Precision -->
<record forcecreate="True" id="decimal_payroll" model="decimal.precision">
<field name="name">Payroll</field>
<field name="digits">2</field>
</record>
<record forcecreate="True" id="decimal_payroll_rate" model="decimal.precision">
<field name="name">Payroll Rate</field>
<field name="digits">4</field>
</record>
</odoo>
9 changes: 9 additions & 0 deletions payroll/data/hr_payroll_sequence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="seq_salary_slip" model="ir.sequence">
<field name="name">Salary Slip</field>
<field name="code">salary.slip</field>
<field name="prefix">SLIP/</field>
<field name="padding">3</field>
</record>
</odoo>
213 changes: 213 additions & 0 deletions payroll/demo/hr_payroll_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="contrib_register_employees" model="hr.contribution.register">
<field name="name">Employees</field>
<field name="partner_id" eval="False" />
</record>
<record id="BASIC" model="hr.salary.rule.category">
<field name="name">Basic</field>
<field name="code">BASIC</field>
</record>
<record id="ALW" model="hr.salary.rule.category">
<field name="name">Allowance</field>
<field name="code">ALW</field>
</record>
<record id="GROSS" model="hr.salary.rule.category">
<field name="name">Gross</field>
<field name="code">GROSS</field>
</record>
<record id="DED" model="hr.salary.rule.category">
<field name="name">Deduction</field>
<field name="code">DED</field>
</record>
<record id="NET" model="hr.salary.rule.category">
<field name="name">Net</field>
<field name="code">NET</field>
</record>
<record id="COMP" model="hr.salary.rule.category">
<field name="name">Company Contribution</field>
<field name="code">COMP</field>
</record>
<record id="hr_rule_basic" model="hr.salary.rule">
<field name="name">Basic Salary</field>
<field name="sequence" eval="1" />
<field name="code">BASIC</field>
<field name="category_id" ref="payroll.BASIC" />
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">
result = contract.wage
</field>
</record>
<record id="hr_rule_taxable" model="hr.salary.rule">
<field name="name">Gross</field>
<field name="sequence" eval="100" />
<field name="code">GROSS</field>
<field name="category_id" ref="payroll.GROSS" />
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">
result = categories.BASIC + categories.ALW
</field>
</record>
<record id="hr_rule_net" model="hr.salary.rule">
<field name="name">Net Salary</field>
<field name="sequence" eval="200" />
<field name="code">NET</field>
<field name="category_id" ref="payroll.NET" />
<field name="condition_select">none</field>
<field name="amount_select">code</field>
<field name="amount_python_compute">
result = categories.BASIC + categories.ALW + categories.DED
</field>
<field name="register_id" ref="contrib_register_employees" />
</record>
<!-- Salary Structure -->
<record id="structure_base" model="hr.payroll.structure">
<field name="code">BASE</field>
<field name="name">Base for new structures</field>
<field
eval="[(6, 0, [ref('hr_rule_basic'), ref('hr_rule_taxable'),ref('hr_rule_net')])]"
name="rule_ids"
/>
<field name="company_id" ref="base.main_company" />
</record>
<!-- Contribution Register -->
<record id="hr_houserent_register" model="hr.contribution.register">
<field name="name">House Rent Allowance Register</field>
</record>
<record id="hr_provident_fund_register" model="hr.contribution.register">
<field name="name">Provident Fund Register</field>
</record>
<record id="hr_professional_tax_register" model="hr.contribution.register">
<field name="name">Professional Tax Register</field>
</record>
<record id="hr_meal_voucher_register" model="hr.contribution.register">
<field name="name">Meal Voucher Register</field>
</record>
<!-- Salary Rules -->
<record id="hr_salary_rule_houserentallowance1" model="hr.salary.rule">
<field name="amount_select">percentage</field>
<field eval="40.0" name="amount_percentage" />
<field name="amount_percentage_base">contract.wage</field>
<field name="code">HRA</field>
<field name="category_id" ref="payroll.ALW" />
<field name="register_id" ref="hr_houserent_register" />
<field name="name">House Rent Allowance</field>
<field name="sequence" eval="5" />
</record>
<record id="hr_salary_rule_convanceallowance1" model="hr.salary.rule">
<field name="amount_select">fix</field>
<field eval="800.0" name="amount_fix" />
<field name="code">CA</field>
<field name="category_id" ref="payroll.ALW" />
<field name="name">Conveyance Allowance</field>
<field name="sequence" eval="10" />
</record>
<record id="hr_salary_rule_professionaltax1" model="hr.salary.rule">
<field name="amount_select">fix</field>
<field eval="150" name="sequence" />
<field eval="-200.0" name="amount_fix" />
<field name="code">PT</field>
<field name="category_id" ref="payroll.DED" />
<field name="register_id" ref="hr_professional_tax_register" />
<field name="name">Professional Tax</field>
</record>
<record id="hr_salary_rule_providentfund1" model="hr.salary.rule">
<field name="amount_select">percentage</field>
<field eval="120" name="sequence" />
<field eval="-12.5" name="amount_percentage" />
<field name="amount_percentage_base">contract.wage</field>
<field name="code">PF</field>
<field name="category_id" ref="payroll.DED" />
<field name="register_id" ref="hr_provident_fund_register" />
<field name="name">Provident Fund</field>
</record>
<record id="hr_salary_rule_ca_demo" model="hr.salary.rule">
<field name="amount_select">fix</field>
<field eval="600.0" name="amount_fix" />
<field name="code">CAMD</field>
<field name="category_id" ref="payroll.ALW" />
<field name="name">Conveyance Allowance For Marc Demo</field>
<field name="sequence" eval="15" />
</record>
<record id="hr_salary_rule_meal_voucher" model="hr.salary.rule">
<field name="amount_select">fix</field>
<field eval="10" name="amount_fix" />
<field name="quantity">
worked_days.WORK100 and worked_days.WORK100.number_of_days
</field>
<field name="code">MA</field>
<field name="category_id" ref="payroll.ALW" />
<field name="register_id" ref="hr_meal_voucher_register" />
<field name="name">Meal Voucher</field>
<field name="sequence" eval="16" />
</record>
<record id="hr_salary_rule_sales_commission" model="hr.salary.rule">
<field name="amount_select">code</field>
<field name="code">SALE</field>
<field name="category_id" ref="payroll.ALW" />
<field name="name">Get 1% of sales</field>
<field name="sequence" eval="17" />
<field name="amount_python_compute">
result = ((inputs.SALEURO and inputs.SALEURO.amount) + (inputs.SALASIA and
inputs.SALASIA.amount)) * 0.01
</field>
</record>
<!-- Rule Inputs -->
<record id="hr_rule_input_sale_a" model="hr.rule.input">
<field name="code">SALEURO</field>
<field name="name">Sales to Europe</field>
<field name="input_id" ref="hr_salary_rule_sales_commission" />
</record>
<record id="hr_rule_input_sale_b" model="hr.rule.input">
<field name="code">SALASIA</field>
<field name="name">Sales to Asia</field>
<field name="input_id" ref="hr_salary_rule_sales_commission" />
</record>
<!-- Salary Structure -->
<record id="structure_001" model="hr.payroll.structure">
<field name="code">ME</field>
<field name="name">Marketing Executive</field>
<field
eval="[(6, 0, [ref('hr_salary_rule_houserentallowance1'),
ref('hr_salary_rule_convanceallowance1'),ref('hr_salary_rule_professionaltax1'),ref('hr_salary_rule_providentfund1')])]"
name="rule_ids"
/>
<field name="company_id" ref="base.main_company" />
<field name="parent_id" ref="structure_base" />
</record>
<record id="structure_002" model="hr.payroll.structure">
<field name="code">MEMD</field>
<field name="name">Marketing Executive for Marc Demo</field>
<field
eval="[(6, 0, [ref('hr_salary_rule_ca_demo'), ref('hr_salary_rule_meal_voucher')])]"
name="rule_ids"
/>
<field name="company_id" ref="base.main_company" />
<field name="parent_id" ref="structure_001" />
</record>
<!-- Employee -->
<record id="hr_employee_payroll" model="hr.employee">
<field name="company_id" ref="base.main_company" />
<field eval="1" name="active" />
<field name="name">Roger Scott</field>
<field name="work_phone">+3282823500</field>
<field
name="image_1920"
type="base64"
file="payroll/static/img/hr_employee_payroll-image.jpg"
/>
<field name="date_version" eval="time.strftime('%Y-%m')+'-1'" />
<field name="contract_date_start" eval="time.strftime('%Y-%m')+'-1'" />
<field name="contract_date_end" eval="time.strftime('%Y')+'-12-31'" />
<field name="struct_id" ref="payroll.structure_001" />
<field eval="4000.0" name="wage" />
<field name="additional_note">Default contract for marketing executives</field>
</record>
<record id="hr.employee_qdp" model="hr.employee">
<field name="struct_id" ref="payroll.structure_002" />
<field eval="5000.0" name="wage" />
<field name="additional_note">This is Marc Demo's contract</field>
</record>
</odoo>
Loading