Skip to content

Commit

Permalink
[MIG]hr_payroll_cancel v12
Browse files Browse the repository at this point in the history
  • Loading branch information
nikul-serpentcs committed Jan 21, 2019
1 parent 703eae8 commit b9f2a9e
Show file tree
Hide file tree
Showing 11 changed files with 562 additions and 34 deletions.
73 changes: 52 additions & 21 deletions hr_payroll_cancel/README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

=================
HR Payroll Cancel
Hr Payroll Cancel
=================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github
:target: https://github.com/OCA/hr/tree/12-hr_payroll_cancel/hr_payroll_cancel
:alt: OCA/hr
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/hr-12-hr_payroll_cancel/hr-12-hr_payroll_cancel-hr_payroll_cancel
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/116/12-hr_payroll_cancel
:alt: Try me on Runbot

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

This module allows the user to cancel a payslip whatever the previous state is
without doing a refund. When the user cancel the journal entry is deleted
and the payslip state is set to rejected. Then the user is able to set the
Expand All @@ -15,6 +34,12 @@ If there’s a refund for a payslip the user should not cancel the entry because
the refund would still be confirm. In that case, the user have either to
confirm again the payslip or cancel the refund.


**Table of contents**

.. contents::
:local:

Usage
=====

Expand All @@ -24,45 +49,51 @@ Go to: Payroll -> Employee Payslip
#. Click on the button "Cancel Payslip" to cancel the payslip.
#. Now the payslip is in rejected state.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/116/11.0

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

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/hr/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_payroll_cancel%0Aversion:%2012-hr_payroll_cancel%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
=======

Images
------
Authors
~~~~~~~

* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
* Vauxoo
* Eficent
* Serpent Consulting Services Pvt. Ltd.

Contributors
------------
~~~~~~~~~~~~

* Luis Torres (luis_t@vauxoo.com)
* Aaron Henriquez (ahenriquez@eficent.com)
* Lois Rilo (lois.rilo@eficent.com)
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
* Duc, Dao Dong <duc.dd@komit-consulting.com> (https://komit-consulting.com)
* Nikul Chaudhary <nikul.chaudhary.serpentcs@gmail.com>

Maintainer
----------

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. 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 https://odoo-community.org.
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/12-hr_payroll_cancel/hr_payroll_cancel>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 0 additions & 5 deletions hr_payroll_cancel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
# Copyright 2014 - Vauxoo http://www.vauxoo.com/
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# (<http://www.serpentcs.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import models
4 changes: 2 additions & 2 deletions hr_payroll_cancel/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Hr Payroll Cancel",
"version": "11.0.1.0.1",
"version": "12.0.1.0.1",
"author": "Vauxoo, Eficent, "
"Serpent Consulting Services Pvt. Ltd.,"
"Odoo Community Association (OCA)",
"category": "HR",
"website": "http://www.vauxoo.com/",
"website": "https://github.com/OCA/hr",
"license": "AGPL-3",
"depends": [
"account_cancel",
Expand Down
5 changes: 0 additions & 5 deletions hr_payroll_cancel/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
# Copyright 2014 - Vauxoo http://www.vauxoo.com/
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# (<http://www.serpentcs.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import hr_payroll
1 change: 0 additions & 1 deletion hr_payroll_cancel/models/hr_payroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@ def action_payslip_cancel(self):
else:
payslip.move_id.reverse_moves()
payslip.move_id = False

return self.write({'state': 'cancel'})
7 changes: 7 additions & 0 deletions hr_payroll_cancel/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* Luis Torres (luis_t@vauxoo.com)
* Aaron Henriquez (ahenriquez@eficent.com)
* Lois Rilo (lois.rilo@eficent.com)
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
* Duc, Dao Dong <duc.dd@komit-consulting.com> (https://komit-consulting.com)
* Nikul Chaudhary <nikul.chaudhary.serpentcs@gmail.com>

9 changes: 9 additions & 0 deletions hr_payroll_cancel/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
This module allows the user to cancel a payslip whatever the previous state is
without doing a refund. When the user cancel the journal entry is deleted
and the payslip state is set to rejected. Then the user is able to set the
state to draft again and later on he/she is able to confirm again the payslip.

If there’s a refund for a payslip the user should not cancel the entry because
the refund would still be confirm. In that case, the user have either to
confirm again the payslip or cancel the refund.

6 changes: 6 additions & 0 deletions hr_payroll_cancel/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Go to: Payroll -> Employee Payslip

#. Choose a payslip from the list.
#. Click on the button "Cancel Payslip" to cancel the payslip.
#. Now the payslip is in rejected state.

Loading

0 comments on commit b9f2a9e

Please sign in to comment.