Skip to content

Commit

Permalink
Merge pull request #507 from Eficent/11.0-mig-hr_payslip_change_state
Browse files Browse the repository at this point in the history
[11.0] [MIG] hr_payslip_change_state
  • Loading branch information
JordiBForgeFlow authored Nov 8, 2018
2 parents 8e1900b + f20d47b commit 42435be
Show file tree
Hide file tree
Showing 82 changed files with 10,769 additions and 0 deletions.
50 changes: 50 additions & 0 deletions hr_payslip_change_state/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

=======================
HR Payslip Change State
=======================

This module process payslip batches:

* This module allows to mass change Payslip states
* The module checks if the required action is allowed for each payslip
* If any of the payslips are not in a suitable state a warning message will
pop up and no changes will be made

Usage
=====
#. Go to the payslip list view and select the ones you want to .
#. Unfold the "More" menu on the top and click on "Change state"
#. Select the action to execute

.. 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

Credits
=======

Contributors
------------
* Aaron Henriquez <ahenriquez@eficent.com>
* Jordi Ballester <jordi.ballester@eficent.com>
* Andhitia Rama <andhitia.r@gmail.com>
* Lois Rilo <lois.rilo@eficent.com>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>

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 https://odoo-community.org.
1 change: 1 addition & 0 deletions hr_payslip_change_state/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizard
19 changes: 19 additions & 0 deletions hr_payslip_change_state/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# © 2016 - Eficent http://www.eficent.com/
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Human Resources Payslip Change State",
"summary": "Change the state of many payslips at a time",
"version": "11.0.1.0.0",
"license": "AGPL-3",
"category": "Human Resources",
"author": "Eficent, Odoo Community Association (OCA)",
"depends": [
'hr_payroll_cancel'
],
"data": [
"wizard/hr_payslip_change_state_view.xml",
],
"installable": True,
}
143 changes: 143 additions & 0 deletions hr_payslip_change_state/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_payslip_change_state
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-06 03:44+0000\n"
"PO-Revision-Date: 2016-12-06 03:44+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: hr_payslip_change_state
#: model:ir.model.fields,help:hr_payslip_change_state.field_hr_payslip_change_state_state
msgid ""
"* When the payslip is created the status is 'Draft'. \n"
"* If the payslip is under verification, the status is 'Compute "
"Sheet'. \n"
"* If the payslip is confirmed then status is set to 'Done'. \n"
"* When user cancel payslip the status is 'Rejected'."
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_state
msgid "Action"
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.ui.view,arch_db:hr_payslip_change_state.hr_payslip_change_state_form
msgid "Cancel"
msgstr "Cancelar"

#. module: hr_payslip_change_state
#: selection:hr.payslip.change.state,state:0
msgid "Cancel Payslip"
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.actions.act_window,name:hr_payslip_change_state.action_hr_payslip_change_state_form
#: model:ir.ui.view,arch_db:hr_payslip_change_state.hr_payslip_change_state_form
msgid "Change state"
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.model,name:hr_payslip_change_state.model_hr_payslip_change_state
msgid "Change state of a payslip"
msgstr ""

#. module: hr_payslip_change_state
#: selection:hr.payslip.change.state,state:0
msgid "Compute Sheet"
msgstr ""

#. module: hr_payslip_change_state
#: selection:hr.payslip.change.state,state:0
msgid "Confirm"
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_create_uid
msgid "Created by"
msgstr "Creado por"

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_create_date
msgid "Created on"
msgstr "Creado en"

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_display_name
msgid "Display Name"
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.ui.view,arch_db:hr_payslip_change_state.hr_payslip_change_state_form
msgid "Execute"
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_id
msgid "ID"
msgstr "ID"

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state___last_update
msgid "Last Modified on"
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: hr_payslip_change_state
#: code:addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py:50
#, python-format
msgid "Only draft payslips can be verified,the payslip %s is in %s state"
msgstr ""

#. module: hr_payslip_change_state
#: code:addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py:58
#, python-format
msgid ""
"Only payslips in states verify or draft can be confirmed, the payslip %s is "
"in %s state"
msgstr ""

#. module: hr_payslip_change_state
#: code:addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py:43
#, python-format
msgid ""
"Only rejected payslips can be reset to draft, the payslip %s is in %s state"
msgstr ""

#. module: hr_payslip_change_state
#: code:addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py:68
#, python-format
msgid "Payslips"
msgstr ""

#. module: hr_payslip_change_state
#: selection:hr.payslip.change.state,state:0
msgid "Set to Draft"
msgstr ""

#. module: hr_payslip_change_state
#: code:addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py:63
#, python-format
msgid "The payslip %s is already canceled please deselect it"
msgstr ""
145 changes: 145 additions & 0 deletions hr_payslip_change_state/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * hr_payslip_change_state
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
# SaFi J. <safi2266@gmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-06 03:44+0000\n"
"PO-Revision-Date: 2016-12-06 03:44+0000\n"
"Last-Translator: SaFi J. <safi2266@gmail.com>, 2016\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: hr_payslip_change_state
#: model:ir.model.fields,help:hr_payslip_change_state.field_hr_payslip_change_state_state
msgid ""
"* When the payslip is created the status is 'Draft'. \n"
"* If the payslip is under verification, the status is 'Compute "
"Sheet'. \n"
"* If the payslip is confirmed then status is set to 'Done'. \n"
"* When user cancel payslip the status is 'Rejected'."
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_state
msgid "Action"
msgstr "الإجراء"

#. module: hr_payslip_change_state
#: model:ir.ui.view,arch_db:hr_payslip_change_state.hr_payslip_change_state_form
msgid "Cancel"
msgstr "إلغاء"

#. module: hr_payslip_change_state
#: selection:hr.payslip.change.state,state:0
msgid "Cancel Payslip"
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.actions.act_window,name:hr_payslip_change_state.action_hr_payslip_change_state_form
#: model:ir.ui.view,arch_db:hr_payslip_change_state.hr_payslip_change_state_form
msgid "Change state"
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.model,name:hr_payslip_change_state.model_hr_payslip_change_state
msgid "Change state of a payslip"
msgstr ""

#. module: hr_payslip_change_state
#: selection:hr.payslip.change.state,state:0
msgid "Compute Sheet"
msgstr ""

#. module: hr_payslip_change_state
#: selection:hr.payslip.change.state,state:0
msgid "Confirm"
msgstr "تأكييد"

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_create_uid
msgid "Created by"
msgstr "أنشئ بواسطة"

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_create_date
msgid "Created on"
msgstr "أنشئ في"

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_display_name
msgid "Display Name"
msgstr "اسم العرض"

#. module: hr_payslip_change_state
#: model:ir.ui.view,arch_db:hr_payslip_change_state.hr_payslip_change_state_form
msgid "Execute"
msgstr ""

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_id
msgid "ID"
msgstr "المعرف"

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state___last_update
msgid "Last Modified on"
msgstr "آخر تعديل في"

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_write_uid
msgid "Last Updated by"
msgstr "آخر تحديث بواسطة"

#. module: hr_payslip_change_state
#: model:ir.model.fields,field_description:hr_payslip_change_state.field_hr_payslip_change_state_write_date
msgid "Last Updated on"
msgstr "آخر تحديث في"

#. module: hr_payslip_change_state
#: code:addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py:50
#, python-format
msgid "Only draft payslips can be verified,the payslip %s is in %s state"
msgstr ""

#. module: hr_payslip_change_state
#: code:addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py:58
#, python-format
msgid ""
"Only payslips in states verify or draft can be confirmed, the payslip %s is "
"in %s state"
msgstr ""

#. module: hr_payslip_change_state
#: code:addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py:43
#, python-format
msgid ""
"Only rejected payslips can be reset to draft, the payslip %s is in %s state"
msgstr ""

#. module: hr_payslip_change_state
#: code:addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py:68
#, python-format
msgid "Payslips"
msgstr ""

#. module: hr_payslip_change_state
#: selection:hr.payslip.change.state,state:0
msgid "Set to Draft"
msgstr "حفظ كمسودة"

#. module: hr_payslip_change_state
#: code:addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py:63
#, python-format
msgid "The payslip %s is already canceled please deselect it"
msgstr ""
Loading

0 comments on commit 42435be

Please sign in to comment.