mirror of
https://github.com/bringout/oca-payroll.git
synced 2026-04-19 05:02:05 +02:00
Initial commit: OCA Payroll packages (5 packages)
This commit is contained in:
commit
d19274f581
407 changed files with 214057 additions and 0 deletions
|
|
@ -0,0 +1,85 @@
|
|||
=====================
|
||||
HR - Payroll Document
|
||||
=====================
|
||||
|
||||
..
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:3698f5f5e529d5d32ae80cdc1ab30660ad4e5d39b6d98f8dace97a0b233743c5
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |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%2Fpayroll-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/payroll/tree/16.0/hr_payroll_document
|
||||
:alt: OCA/payroll
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/payroll-16-0/payroll-16-0-hr_payroll_document
|
||||
: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=16.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module have a wizard view to manage the different payrolls of employees which is identified by the identification_id attribute.
|
||||
|
||||
**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:%20hr_payroll_document%0Aversion:%2016.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
|
||||
~~~~~~~
|
||||
|
||||
* APSL
|
||||
|
||||
Contributors
|
||||
~~~~~~~~~~~~
|
||||
|
||||
* Antoni Marroig Campomar <amarroig@apsl.net>
|
||||
* Miquel Alzanillas Monserrat <malzanillas@apsl.net>
|
||||
|
||||
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-peluko00| image:: https://github.com/peluko00.png?size=40px
|
||||
:target: https://github.com/peluko00
|
||||
:alt: peluko00
|
||||
|
||||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-peluko00|
|
||||
|
||||
This module is part of the `OCA/payroll <https://github.com/OCA/payroll/tree/16.0/hr_payroll_document>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
from . import wizard
|
||||
from . import models
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"name": "HR - Payroll Document",
|
||||
"summary": "Manage payroll for each employee",
|
||||
"author": "APSL, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/payroll",
|
||||
"license": "AGPL-3",
|
||||
"category": "Payrolls",
|
||||
"version": "16.0.1.0.0",
|
||||
"depends": ["hr", "base_vat"],
|
||||
"maintainers": ["peluko00"],
|
||||
"external_dependencies": {"python": ["pypdf"]},
|
||||
"data": [
|
||||
"wizard/payroll_management_wizard.xml",
|
||||
"security/ir.model.access.csv",
|
||||
"data/email_payroll_employee.xml",
|
||||
],
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="payroll_employee_email_template" model="mail.template">
|
||||
<field name="name">Payroll Employee</field>
|
||||
<field name="model_id" ref="hr.model_hr_employee" />
|
||||
<field name="email_from">{{object.company_id.email}}</field>
|
||||
<field name="email_to">{{object.work_email}}</field>
|
||||
<field name="subject">Payroll {{ctx.get('subject')}}</field>
|
||||
<field name="auto_delete" eval="False" />
|
||||
<field name="body_html">
|
||||
<![CDATA[<html>
|
||||
<head></head>
|
||||
<body style="margin: 0; padding: 0;">
|
||||
<table style="padding:20px;background-color:#ededed; border-collapse:separate" width="100%" cellpadding="0" border="0"><tbody><!-- HEADER --><tr><td style="min-width:590px" align="center"><table style="min-width:590px;background-color:#fff; padding:20px; border-collapse:separate" width="590" cellpadding="0" border="0"><tbody><tr><td style="text-align:right" valign="middle"><img src="/logo.png" style="padding:0px;margin:0px; height:auto; width:80px" alt="{{object.company_id.name}}"></td></tr><tr><td style="text-align:left" valign="middle"><h2 style="color:rgb(28, 130, 156)"><font style="color:rgb(107, 175, 103);">Payroll <t t-out="ctx.get('subject')" contenteditable="false" data-oe-t-inline="true"/></font></h2></td></tr></tbody></table></td></tr><!-- CONTENT --><tr><td style="min-width:590px" align="center"><table style="min-width:590px;background-color:rgb(255, 255, 255); padding:20px; border-collapse:separate" width="590" cellpadding="0" border="0"><tbody><tr><td style="font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px" valign="top"><p> </p><p>Hello <t t-out="object.name" contenteditable="false" data-oe-t-inline="true"/>,</p><br><p>We send you the payroll with the subject <t t-out="ctx.get('subject')" contenteditable="false" data-oe-t-inline="true"/>.<br></p></td></tr><tr><td style="font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px" valign="top"><br></td></tr><tr><td style="font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px" valign="top"><br><p></p></td></tr></tbody></table></td></tr><!-- FOOTER --><tr><td style="min-width:590px" align="center"><table style="min-width:590px;background-color:#95ce3f; padding:20px; border-collapse:separate" width="590" cellpadding="0" border="0"><tbody> </tbody></table></td></tr></tbody></table>
|
||||
<p></p>
|
||||
</html>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,220 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_payroll_document
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,body_html:hr_payroll_document.payroll_employee_email_template
|
||||
msgid ""
|
||||
"\n"
|
||||
" <html>\n"
|
||||
" <head></head>\n"
|
||||
" <body style=\"margin: 0; padding: 0;\">\n"
|
||||
" <table style=\"padding:20px;background-color:#ededed; border-collapse:separate\" width=\"100%\" cellpadding=\"0\" border=\"0\"><tbody><!-- HEADER --><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;background-color:#fff; padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody><tr><td style=\"text-align:right\" valign=\"middle\"><img src=\"/logo.png\" style=\"padding:0px;margin:0px; height:auto; width:80px\" alt=\"{{object.company_id.name}}\"></td></tr><tr><td style=\"text-align:left\" valign=\"middle\"><h2 style=\"color:rgb(28, 130, 156)\"><font style=\"color:rgb(107, 175, 103);\">Payroll <t t-out=\"ctx.get('subject')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/></font></h2></td></tr></tbody></table></td></tr><!-- CONTENT --><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;background-color:rgb(255, 255, 255); padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><p> </p><p>Hello <t t-out=\"object.name\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>,</p><br><p>We send you the payroll with the subject <t t-out=\"ctx.get('subject')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>.<br></p></td></tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><br></td></tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><br><p></p></td></tr></tbody></table></td></tr><!-- FOOTER --><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;background-color:#95ce3f; padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody> </tbody></table></td></tr></tbody></table>\n"
|
||||
" <p></p>\n"
|
||||
" </html>\n"
|
||||
" \n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_ir_attachment
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment__payrol_rel
|
||||
msgid "Attachment"
|
||||
msgstr "Prilog"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__attachment_id
|
||||
msgid "Attachment File"
|
||||
msgstr "Datoteka priloga"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model_terms:ir.ui.view,arch_db:hr_payroll_document.payrolls_management_wizard_form
|
||||
msgid "Close"
|
||||
msgstr "Zatvori"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__create_date
|
||||
msgid "Create Date"
|
||||
msgstr "Kreiraj datum"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__create_uid
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Kreirao"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Kreirano"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__display_name
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Prikazani naziv"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_hr_employee
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__employee
|
||||
msgid "Employee"
|
||||
msgstr "Zaposleni"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Employees not found"
|
||||
msgstr "Radnici nisu pronađeni"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,help:hr_payroll_document.field_payroll_management_wizard__subject
|
||||
msgid ""
|
||||
"Enter the title of the payroll whether it is the month, week, day, etc."
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__id
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "IDs whose employee has not been found: "
|
||||
msgstr "ID-ovi čiji radnik nije pronađen: "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__identification_id
|
||||
msgid "Identification ID"
|
||||
msgstr "Identifikacioni ID"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom____last_update
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Zadnje mijenjano"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_uid
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Zadnji ažurirao"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_date
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Zadnje ažurirano"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Missing pdf file signature"
|
||||
msgstr "Nedostaje potpis PDF datoteke"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payroll"
|
||||
msgstr "Obračun plata"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payroll "
|
||||
msgstr "Plata "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,name:hr_payroll_document.payroll_employee_email_template
|
||||
msgid "Payroll Employee"
|
||||
msgstr "Radnik plate"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_payroll_management_wizard
|
||||
msgid "Payroll Management"
|
||||
msgstr "Upravljanje platama"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_ir_attachment_payroll_custom
|
||||
msgid "Payroll attachment"
|
||||
msgstr "Prilog plate"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,subject:hr_payroll_document.payroll_employee_email_template
|
||||
msgid "Payroll {{ctx.get('subject')}}"
|
||||
msgstr "Plata {{ctx.get('subject')}}"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__payrolls
|
||||
msgid "Payrolls"
|
||||
msgstr "Plate"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.actions.act_window,name:hr_payroll_document.payrolls_management_wizard_action
|
||||
#: model:ir.ui.menu,name:hr_payroll_document.payrolls_management_wizard_menu_action
|
||||
msgid "Payrolls Management"
|
||||
msgstr "Upravljanje platama"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payrolls sent"
|
||||
msgstr "Plate poslane"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payrolls sent to employees correctly"
|
||||
msgstr "Plate poslane radnicima uspješno"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model_terms:ir.ui.view,arch_db:hr_payroll_document.payrolls_management_wizard_form
|
||||
msgid "Send"
|
||||
msgstr "Pošalji"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__subject
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__subject
|
||||
msgid "Subject"
|
||||
msgstr "Tema"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/models/hr_employee.py:0
|
||||
#, python-format
|
||||
msgid "The field identification ID is not valid"
|
||||
msgstr "Polje identifikaciona ID nije važeći"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "You must to filled country field of company"
|
||||
msgstr "Morate popuniti polje zemlja kompanije"
|
||||
|
|
@ -0,0 +1,281 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_payroll_document
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-12-14 10:27+0000\n"
|
||||
"PO-Revision-Date: 2023-12-14 10:27+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,body_html:hr_payroll_document.payroll_employee_email_template
|
||||
msgid ""
|
||||
"\n"
|
||||
" <html>\n"
|
||||
" <head></head>\n"
|
||||
" <body style=\"margin: 0; padding: 0;\">\n"
|
||||
" <table style=\"padding:20px;background-color:#ededed; "
|
||||
"border-collapse:separate\" width=\"100%\" cellpadding=\"0\" "
|
||||
"border=\"0\"><tbody><!-- HEADER --><tr><td style=\"min-width:590px\" "
|
||||
"align=\"center\"><table style=\"min-width:590px;background-color:#fff; "
|
||||
"padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" "
|
||||
"border=\"0\"><tbody><tr><td style=\"text-align:right\" "
|
||||
"valign=\"middle\"><img src=\"/logo.png\" style=\"padding:0px;margin:0px; "
|
||||
"height:auto; width:80px\" alt=\"{{object.company_id.name}}\"></td></"
|
||||
"tr><tr><td style=\"text-align:left\" valign=\"middle\"><h2 style=\"color:"
|
||||
"rgb(28, 130, 156)\"><font style=\"color:rgb(107, 175, 103);\">Payroll <t t-"
|
||||
"out=\"ctx.get('subject')\" contenteditable=\"false\" data-oe-t-"
|
||||
"inline=\"true\"/></font></h2></td></tr></tbody></table></td></tr><!-- "
|
||||
"CONTENT --><tr><td style=\"min-width:590px\" align=\"center\"><table "
|
||||
"style=\"min-width:590px;background-color:rgb(255, 255, 255); padding:20px; "
|
||||
"border-collapse:separate\" width=\"590\" cellpadding=\"0\" "
|
||||
"border=\"0\"><tbody><tr><td style=\"font-family:Arial,Helvetica,sans-serif;"
|
||||
"color:#555; font-size:14px\" valign=\"top\"><p> </p><p>Hello <t t-"
|
||||
"out=\"object.name\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>,</"
|
||||
"p><br><p>We send you the payroll with the subject <t t-out=\"ctx."
|
||||
"get('subject')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>.<br></"
|
||||
"p></td></tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:"
|
||||
"#555; font-size:14px\" valign=\"top\"><br></td></tr><tr><td style=\"font-"
|
||||
"family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" "
|
||||
"valign=\"top\"><br><p></p></td></tr></tbody></table></td></tr><!-- FOOTER --"
|
||||
"><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-"
|
||||
"width:590px;background-color:#95ce3f; padding:20px; border-collapse:"
|
||||
"separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody> </tbody></"
|
||||
"table></td></tr></tbody></table>\n"
|
||||
" <p></p>\n"
|
||||
" </html>\n"
|
||||
" \n"
|
||||
" "
|
||||
msgstr ""
|
||||
"\n"
|
||||
" <html>\n"
|
||||
" <head></head>\n"
|
||||
" <body style=\"margin: 0; padding: 0;\">\n"
|
||||
" <table style=\"padding:20px;background-color:#ededed; "
|
||||
"border-collapse:separate\" width=\"100%\" cellpadding=\"0\" "
|
||||
"border=\"0\"><tbody><!-- HEADER --><tr><td style=\"min-width:590px\" "
|
||||
"align=\"center\"><table style=\"min-width:590px;background-color:#fff; "
|
||||
"padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" "
|
||||
"border=\"0\"><tbody><tr><td style=\"text-align:right\" "
|
||||
"valign=\"middle\"><img src=\"/logo.png\" style=\"padding:0px;margin:0px; "
|
||||
"height:auto; width:80px\" alt=\"{{object.company_id.name}}\"></td></"
|
||||
"tr><tr><td style=\"text-align:left\" valign=\"middle\"><h2 style=\"color:"
|
||||
"rgb(28, 130, 156)\"><font style=\"color:rgb(107, 175, 103);\">Nòmina <t t-"
|
||||
"out=\"ctx.get('month')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/"
|
||||
"></font></h2></td></tr></tbody></table></td></tr><!-- CONTENT --><tr><td "
|
||||
"style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;"
|
||||
"background-color:rgb(255, 255, 255); padding:20px; border-collapse:"
|
||||
"separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody><tr><td "
|
||||
"style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" "
|
||||
"valign=\"top\"><p> </p><p>Hola <t t-out=\"object.name\" "
|
||||
"contenteditable=\"false\" data-oe-t-inline=\"true\"/>,</p><br><p>Et remetem "
|
||||
"la teva nòmina del mes de <t t-out=\"ctx.get('subject')\" "
|
||||
"contenteditable=\"false\" data-oe-t-inline=\"true\"/>.<br></p></td></"
|
||||
"tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-"
|
||||
"size:14px\" valign=\"top\"><br></td></tr><tr><td style=\"font-family:Arial,"
|
||||
"Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><br><p></"
|
||||
"p></td></tr></tbody></table></td></tr><!-- FOOTER --><tr><td style=\"min-"
|
||||
"width:590px\" align=\"center\"><table style=\"min-width:590px;background-"
|
||||
"color:#95ce3f; padding:20px; border-collapse:separate\" width=\"590\" "
|
||||
"cellpadding=\"0\" border=\"0\"><tbody> </tbody></table></td></tr></tbody></"
|
||||
"table>\n"
|
||||
" <p></p>\n"
|
||||
" </html>\n"
|
||||
" \n"
|
||||
" "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_ir_attachment
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment__payrol_rel
|
||||
msgid "Attachment"
|
||||
msgstr "Adjunt"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__attachment_id
|
||||
msgid "Attachment File"
|
||||
msgstr "Fitxer Adjunt"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model_terms:ir.ui.view,arch_db:hr_payroll_document.payrolls_management_wizard_form
|
||||
msgid "Close"
|
||||
msgstr "Tancar"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__create_date
|
||||
msgid "Create Date"
|
||||
msgstr "Data de creació"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__create_uid
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creat per"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creat el"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__display_name
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nom a mostrar"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_hr_employee
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__employee
|
||||
msgid "Employee"
|
||||
msgstr "Empleat"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Employees not found"
|
||||
msgstr "Empleats no trobats"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,help:hr_payroll_document.field_payroll_management_wizard__subject
|
||||
msgid "Enter the title of the payroll whether it is the month, week, day, etc."
|
||||
msgstr "Introduïu el títol de la nòmina ja sigui el mes, setmana, dia, etc."
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__id
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "IDs whose employee has not been found: "
|
||||
msgstr "IDs dels empleats que no s'han trobat: "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__identification_id
|
||||
msgid "Identification ID"
|
||||
msgstr "Identificació ID"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom____last_update
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Darrera modificació el"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_uid
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Darrera actualització per"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_date
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Darrera actualització el"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Missing pdf file signature"
|
||||
msgstr "Els fitxers han de ser de tipus pdf"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payroll"
|
||||
msgstr "Nòmina"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payroll "
|
||||
msgstr "Nòmina "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,name:hr_payroll_document.payroll_employee_email_template
|
||||
msgid "Payroll Employee"
|
||||
msgstr "Nòmina Empleat"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_payroll_management_wizard
|
||||
msgid "Payroll Management"
|
||||
msgstr "Gestió Nòmines"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_ir_attachment_payroll_custom
|
||||
msgid "Payroll attachment"
|
||||
msgstr "Adjunt Nòmina"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,subject:hr_payroll_document.payroll_employee_email_template
|
||||
msgid "Payroll {{ctx.get('subject')}}"
|
||||
msgstr "Nòmina {{ctx.get('month')}}"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__payrolls
|
||||
msgid "Payrolls"
|
||||
msgstr "Nòmines"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.actions.act_window,name:hr_payroll_document.payrolls_management_wizard_action
|
||||
#: model:ir.ui.menu,name:hr_payroll_document.payrolls_management_wizard_menu_action
|
||||
msgid "Payrolls Management"
|
||||
msgstr "Gestió Nòmines"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payrolls sent"
|
||||
msgstr "Nòmines enviades"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payrolls sent to employees correctly"
|
||||
msgstr "Nòmines envides als empleats correctament"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model_terms:ir.ui.view,arch_db:hr_payroll_document.payrolls_management_wizard_form
|
||||
msgid "Send"
|
||||
msgstr "Enviar"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__subject
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__subject
|
||||
msgid "Subject"
|
||||
msgstr "Assumpte"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/models/hr_employee.py:0
|
||||
#, python-format
|
||||
msgid "The field identification ID is not valid"
|
||||
msgstr "El camp identificatiu ID no és vàlid"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "You must to filled country field of company"
|
||||
msgstr "Falta emplenar el camp de país de l'empresa"
|
||||
|
|
@ -0,0 +1,281 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_payroll_document
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-12-14 10:28+0000\n"
|
||||
"PO-Revision-Date: 2023-12-14 10:28+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,body_html:hr_payroll_document.payroll_employee_email_template
|
||||
msgid ""
|
||||
"\n"
|
||||
" <html>\n"
|
||||
" <head></head>\n"
|
||||
" <body style=\"margin: 0; padding: 0;\">\n"
|
||||
" <table style=\"padding:20px;background-color:#ededed; "
|
||||
"border-collapse:separate\" width=\"100%\" cellpadding=\"0\" "
|
||||
"border=\"0\"><tbody><!-- HEADER --><tr><td style=\"min-width:590px\" "
|
||||
"align=\"center\"><table style=\"min-width:590px;background-color:#fff; "
|
||||
"padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" "
|
||||
"border=\"0\"><tbody><tr><td style=\"text-align:right\" "
|
||||
"valign=\"middle\"><img src=\"/logo.png\" style=\"padding:0px;margin:0px; "
|
||||
"height:auto; width:80px\" alt=\"{{object.company_id.name}}\"></td></"
|
||||
"tr><tr><td style=\"text-align:left\" valign=\"middle\"><h2 style=\"color:"
|
||||
"rgb(28, 130, 156)\"><font style=\"color:rgb(107, 175, 103);\">Payroll <t t-"
|
||||
"out=\"ctx.get('subject')\" contenteditable=\"false\" data-oe-t-"
|
||||
"inline=\"true\"/></font></h2></td></tr></tbody></table></td></tr><!-- "
|
||||
"CONTENT --><tr><td style=\"min-width:590px\" align=\"center\"><table "
|
||||
"style=\"min-width:590px;background-color:rgb(255, 255, 255); padding:20px; "
|
||||
"border-collapse:separate\" width=\"590\" cellpadding=\"0\" "
|
||||
"border=\"0\"><tbody><tr><td style=\"font-family:Arial,Helvetica,sans-serif;"
|
||||
"color:#555; font-size:14px\" valign=\"top\"><p> </p><p>Hello <t t-"
|
||||
"out=\"object.name\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>,</"
|
||||
"p><br><p>We send you the payroll with the subject <t t-out=\"ctx."
|
||||
"get('subject')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>.<br></"
|
||||
"p></td></tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:"
|
||||
"#555; font-size:14px\" valign=\"top\"><br></td></tr><tr><td style=\"font-"
|
||||
"family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" "
|
||||
"valign=\"top\"><br><p></p></td></tr></tbody></table></td></tr><!-- FOOTER --"
|
||||
"><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-"
|
||||
"width:590px;background-color:#95ce3f; padding:20px; border-collapse:"
|
||||
"separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody> </tbody></"
|
||||
"table></td></tr></tbody></table>\n"
|
||||
" <p></p>\n"
|
||||
" </html>\n"
|
||||
" \n"
|
||||
" "
|
||||
msgstr ""
|
||||
"\n"
|
||||
" <html>\n"
|
||||
" <head></head>\n"
|
||||
" <body style=\"margin: 0; padding: 0;\">\n"
|
||||
" <table style=\"padding:20px;background-color:#ededed; "
|
||||
"border-collapse:separate\" width=\"100%\" cellpadding=\"0\" "
|
||||
"border=\"0\"><tbody><!-- HEADER --><tr><td style=\"min-width:590px\" "
|
||||
"align=\"center\"><table style=\"min-width:590px;background-color:#fff; "
|
||||
"padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" "
|
||||
"border=\"0\"><tbody><tr><td style=\"text-align:right\" "
|
||||
"valign=\"middle\"><img src=\"/logo.png\" style=\"padding:0px;margin:0px; "
|
||||
"height:auto; width:80px\" alt=\"{{object.company_id.name}}\"></td></"
|
||||
"tr><tr><td style=\"text-align:left\" valign=\"middle\"><h2 style=\"color:"
|
||||
"rgb(28, 130, 156)\"><font style=\"color:rgb(107, 175, 103);\">Nómina <t t-"
|
||||
"out=\"ctx.get('month')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/"
|
||||
"></font></h2></td></tr></tbody></table></td></tr><!-- CONTENT --><tr><td "
|
||||
"style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;"
|
||||
"background-color:rgb(255, 255, 255); padding:20px; border-collapse:"
|
||||
"separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody><tr><td "
|
||||
"style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" "
|
||||
"valign=\"top\"><p> </p><p>Hola <t t-out=\"object.name\" "
|
||||
"contenteditable=\"false\" data-oe-t-inline=\"true\"/>,</p><br><p>Te enviamos "
|
||||
"la nómina del mes de <t t-out=\"ctx.get('subject')\" "
|
||||
"contenteditable=\"false\" data-oe-t-inline=\"true\"/>.<br></p></td></"
|
||||
"tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-"
|
||||
"size:14px\" valign=\"top\"><br></td></tr><tr><td style=\"font-family:Arial,"
|
||||
"Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><br><p></"
|
||||
"p></td></tr></tbody></table></td></tr><!-- FOOTER --><tr><td style=\"min-"
|
||||
"width:590px\" align=\"center\"><table style=\"min-width:590px;background-"
|
||||
"color:#95ce3f; padding:20px; border-collapse:separate\" width=\"590\" "
|
||||
"cellpadding=\"0\" border=\"0\"><tbody> </tbody></table></td></tr></tbody></"
|
||||
"table>\n"
|
||||
" <p></p>\n"
|
||||
" </html>\n"
|
||||
" \n"
|
||||
" "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_ir_attachment
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment__payrol_rel
|
||||
msgid "Attachment"
|
||||
msgstr "Adjunto"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__attachment_id
|
||||
msgid "Attachment File"
|
||||
msgstr "Fichero Adjunto"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model_terms:ir.ui.view,arch_db:hr_payroll_document.payrolls_management_wizard_form
|
||||
msgid "Close"
|
||||
msgstr "Cerrar"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__create_date
|
||||
msgid "Create Date"
|
||||
msgstr "Fecha de creación"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__create_uid
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creado por"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creado el"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__display_name
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nombre para mostrar"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_hr_employee
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__employee
|
||||
msgid "Employee"
|
||||
msgstr "Empleado"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Employees not found"
|
||||
msgstr "Empleados no encontrados"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,help:hr_payroll_document.field_payroll_management_wizard__subject
|
||||
msgid "Enter the title of the payroll whether it is the month, week, day, etc."
|
||||
msgstr "Introduzca el título de la nómina ya sea el mes, semana, día , etc.."
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__id
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "IDs whose employee has not been found: "
|
||||
msgstr "IDs de los empleados que no se han encontrado: "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__identification_id
|
||||
msgid "Identification ID"
|
||||
msgstr "Identificación ID"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom____last_update
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Última modificación el"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_uid
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Última actualización por"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_date
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Última actualización el"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Missing pdf file signature"
|
||||
msgstr "Los archivos tienen que ser de tipo pdf"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payroll"
|
||||
msgstr "Nómina"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payroll "
|
||||
msgstr "Nómina "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,name:hr_payroll_document.payroll_employee_email_template
|
||||
msgid "Payroll Employee"
|
||||
msgstr "Nómina Empleado"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_payroll_management_wizard
|
||||
msgid "Payroll Management"
|
||||
msgstr "Gestión Nóminas"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_ir_attachment_payroll_custom
|
||||
msgid "Payroll attachment"
|
||||
msgstr "Adjunto Nómina"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,subject:hr_payroll_document.payroll_employee_email_template
|
||||
msgid "Payroll {{ctx.get('subject')}}"
|
||||
msgstr "Nómina {{ctx.get('month')}}"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__payrolls
|
||||
msgid "Payrolls"
|
||||
msgstr "Nóminas"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.actions.act_window,name:hr_payroll_document.payrolls_management_wizard_action
|
||||
#: model:ir.ui.menu,name:hr_payroll_document.payrolls_management_wizard_menu_action
|
||||
msgid "Payrolls Management"
|
||||
msgstr "Gestión Nóminas"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payrolls sent"
|
||||
msgstr "Nóminas enviadas"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payrolls sent to employees correctly"
|
||||
msgstr "Nóminas enviadas a los empleados correctamente"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model_terms:ir.ui.view,arch_db:hr_payroll_document.payrolls_management_wizard_form
|
||||
msgid "Send"
|
||||
msgstr "Enviar"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__subject
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__subject
|
||||
msgid "Subject"
|
||||
msgstr "Asunto"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/models/hr_employee.py:0
|
||||
#, python-format
|
||||
msgid "The field identification ID is not valid"
|
||||
msgstr "El campo identificativo ID no es válido"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "You must to filled country field of company"
|
||||
msgstr "Falta rellenar el campo del país de la empresa"
|
||||
|
|
@ -0,0 +1,220 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_payroll_document
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,body_html:hr_payroll_document.payroll_employee_email_template
|
||||
msgid ""
|
||||
"\n"
|
||||
" <html>\n"
|
||||
" <head></head>\n"
|
||||
" <body style=\"margin: 0; padding: 0;\">\n"
|
||||
" <table style=\"padding:20px;background-color:#ededed; border-collapse:separate\" width=\"100%\" cellpadding=\"0\" border=\"0\"><tbody><!-- HEADER --><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;background-color:#fff; padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody><tr><td style=\"text-align:right\" valign=\"middle\"><img src=\"/logo.png\" style=\"padding:0px;margin:0px; height:auto; width:80px\" alt=\"{{object.company_id.name}}\"></td></tr><tr><td style=\"text-align:left\" valign=\"middle\"><h2 style=\"color:rgb(28, 130, 156)\"><font style=\"color:rgb(107, 175, 103);\">Payroll <t t-out=\"ctx.get('subject')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/></font></h2></td></tr></tbody></table></td></tr><!-- CONTENT --><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;background-color:rgb(255, 255, 255); padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><p> </p><p>Hello <t t-out=\"object.name\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>,</p><br><p>We send you the payroll with the subject <t t-out=\"ctx.get('subject')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>.<br></p></td></tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><br></td></tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><br><p></p></td></tr></tbody></table></td></tr><!-- FOOTER --><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;background-color:#95ce3f; padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody> </tbody></table></td></tr></tbody></table>\n"
|
||||
" <p></p>\n"
|
||||
" </html>\n"
|
||||
" \n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_ir_attachment
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment__payrol_rel
|
||||
msgid "Attachment"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__attachment_id
|
||||
msgid "Attachment File"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model_terms:ir.ui.view,arch_db:hr_payroll_document.payrolls_management_wizard_form
|
||||
msgid "Close"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__create_date
|
||||
msgid "Create Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__create_uid
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__create_uid
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__create_date
|
||||
msgid "Created on"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__display_name
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__display_name
|
||||
msgid "Display Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_hr_employee
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__employee
|
||||
msgid "Employee"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Employees not found"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,help:hr_payroll_document.field_payroll_management_wizard__subject
|
||||
msgid ""
|
||||
"Enter the title of the payroll whether it is the month, week, day, etc."
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__id
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__id
|
||||
msgid "ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "IDs whose employee has not been found: "
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__identification_id
|
||||
msgid "Identification ID"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom____last_update
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_uid
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_date
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Missing pdf file signature"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payroll"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payroll "
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,name:hr_payroll_document.payroll_employee_email_template
|
||||
msgid "Payroll Employee"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_payroll_management_wizard
|
||||
msgid "Payroll Management"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_ir_attachment_payroll_custom
|
||||
msgid "Payroll attachment"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,subject:hr_payroll_document.payroll_employee_email_template
|
||||
msgid "Payroll {{ctx.get('subject')}}"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__payrolls
|
||||
msgid "Payrolls"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.actions.act_window,name:hr_payroll_document.payrolls_management_wizard_action
|
||||
#: model:ir.ui.menu,name:hr_payroll_document.payrolls_management_wizard_menu_action
|
||||
msgid "Payrolls Management"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payrolls sent"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payrolls sent to employees correctly"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model_terms:ir.ui.view,arch_db:hr_payroll_document.payrolls_management_wizard_form
|
||||
msgid "Send"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__subject
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__subject
|
||||
msgid "Subject"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/models/hr_employee.py:0
|
||||
#, python-format
|
||||
msgid "The field identification ID is not valid"
|
||||
msgstr ""
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "You must to filled country field of company"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,260 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * hr_payroll_document
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2024-03-04 15:34+0000\n"
|
||||
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: it\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"
|
||||
"X-Generator: Weblate 4.17\n"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,body_html:hr_payroll_document.payroll_employee_email_template
|
||||
msgid ""
|
||||
"\n"
|
||||
" <html>\n"
|
||||
" <head></head>\n"
|
||||
" <body style=\"margin: 0; padding: 0;\">\n"
|
||||
" <table style=\"padding:20px;background-color:#ededed; border-collapse:separate\" width=\"100%\" cellpadding=\"0\" border=\"0\"><tbody><!-- HEADER --><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;background-color:#fff; padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody><tr><td style=\"text-align:right\" valign=\"middle\"><img src=\"/logo.png\" style=\"padding:0px;margin:0px; height:auto; width:80px\" alt=\"{{object.company_id.name}}\"></td></tr><tr><td style=\"text-align:left\" valign=\"middle\"><h2 style=\"color:rgb(28, 130, 156)\"><font style=\"color:rgb(107, 175, 103);\">Payroll <t t-out=\"ctx.get('subject')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/></font></h2></td></tr></tbody></table></td></tr><!-- CONTENT --><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;background-color:rgb(255, 255, 255); padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><p> </p><p>Hello <t t-out=\"object.name\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>,</p><br><p>We send you the payroll with the subject <t t-out=\"ctx.get('subject')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>.<br></p></td></tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><br></td></tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><br><p></p></td></tr></tbody></table></td></tr><!-- FOOTER --><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;background-color:#95ce3f; padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody> </tbody></table></td></tr></tbody></table>\n"
|
||||
" <p></p>\n"
|
||||
" </html>\n"
|
||||
" \n"
|
||||
" "
|
||||
msgstr ""
|
||||
"\n"
|
||||
" <html>\n"
|
||||
" <head></head>\n"
|
||||
" <body style=\"margin: 0; padding: 0;\">\n"
|
||||
" <table style=\"padding:20px;background-color:#ededed; "
|
||||
"border-collapse:separate\" width=\"100%\" cellpadding=\"0\" border=\"0\""
|
||||
"><tbody><!-- HEADER --><tr><td style=\"min-width:590px\" align=\"center\""
|
||||
"><table style=\"min-width:590px;background-color:#fff; padding:20px; border-"
|
||||
"collapse:separate\" width=\"590\" cellpadding=\"0\" border=\"0\""
|
||||
"><tbody><tr><td style=\"text-align:right\" valign=\"middle\"><img src=\"/logo"
|
||||
".png\" style=\"padding:0px;margin:0px; height:auto; width:80px\" alt=\""
|
||||
"{{object.company_id.name}}\"></td></tr><tr><td style=\"text-align:left\" "
|
||||
"valign=\"middle\"><h2 style=\"color:rgb(28, 130, 156)\"><font style=\"color"
|
||||
":rgb(107, 175, 103);\">Stipendio<t t-out=\"ctx.get('subject')\" "
|
||||
"contenteditable=\"false\" data-oe-t-inline=\"true\""
|
||||
"/></font></h2></td></tr></tbody></table></td></tr><!-- CONTENT --><tr><td "
|
||||
"style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px"
|
||||
";background-color:rgb(255, 255, 255); padding:20px; border-collapse:"
|
||||
"separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody><tr><td style"
|
||||
"=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" "
|
||||
"valign=\"top\"><p> </p><p>Hello <t t-out=\"object.name\" contenteditable="
|
||||
"\"false\" data-oe-t-inline=\"true\"/>,</p><br><p>Abbiamo inviato la "
|
||||
"retribuzione con soggetto<t t-out=\"ctx.get('subject')\" contenteditable="
|
||||
"\"false\" data-oe-t-inline=\"true\"/>.<br></p></td></tr><tr><td style=\"font-"
|
||||
"family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\""
|
||||
"><br></td></tr><tr><td style=\"font-family:Arial,Helvetica,sans-"
|
||||
"serif;color:#555; font-size:14px\" valign=\"top\""
|
||||
"><br><p></p></td></tr></tbody></table></td></tr><!-- FOOTER --><tr><td style"
|
||||
"=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px"
|
||||
";background-color:#95ce3f; padding:20px; border-collapse:separate\" width="
|
||||
"\"590\" cellpadding=\"0\" border=\"0\"><tbody> "
|
||||
"</tbody></table></td></tr></tbody></table>\n"
|
||||
" <p></p>\n"
|
||||
" </html>\n"
|
||||
" \n"
|
||||
" "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_ir_attachment
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment__payrol_rel
|
||||
msgid "Attachment"
|
||||
msgstr "Allegato"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__attachment_id
|
||||
msgid "Attachment File"
|
||||
msgstr "File allegato"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model_terms:ir.ui.view,arch_db:hr_payroll_document.payrolls_management_wizard_form
|
||||
msgid "Close"
|
||||
msgstr "Chiudi"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__create_date
|
||||
msgid "Create Date"
|
||||
msgstr "Data creazione"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__create_uid
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__create_uid
|
||||
msgid "Created by"
|
||||
msgstr "Creato da"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__create_date
|
||||
msgid "Created on"
|
||||
msgstr "Creato il"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__display_name
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__display_name
|
||||
msgid "Display Name"
|
||||
msgstr "Nome visualizzato"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_hr_employee
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__employee
|
||||
msgid "Employee"
|
||||
msgstr "Dipendente"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Employees not found"
|
||||
msgstr "Dipendenti non trovati"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,help:hr_payroll_document.field_payroll_management_wizard__subject
|
||||
msgid ""
|
||||
"Enter the title of the payroll whether it is the month, week, day, etc."
|
||||
msgstr ""
|
||||
"Inserire il titolo della retribuzione se è il mese, settimana, giorno, ecc."
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__id
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__id
|
||||
msgid "ID"
|
||||
msgstr "ID"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "IDs whose employee has not been found: "
|
||||
msgstr "ID il cui dipendente non è stato trovato: "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__identification_id
|
||||
msgid "Identification ID"
|
||||
msgstr "ID identificazione"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom____last_update
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard____last_update
|
||||
msgid "Last Modified on"
|
||||
msgstr "Ultima modifica il"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_uid
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_uid
|
||||
msgid "Last Updated by"
|
||||
msgstr "Ultimo aggiornamento di"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_date
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_date
|
||||
msgid "Last Updated on"
|
||||
msgstr "Ultimo aggiornamento il"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Missing pdf file signature"
|
||||
msgstr "Firma PDF mancante"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payroll"
|
||||
msgstr "Retribuzione"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payroll "
|
||||
msgstr "Retribuzione "
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,name:hr_payroll_document.payroll_employee_email_template
|
||||
msgid "Payroll Employee"
|
||||
msgstr "Retribuzione dipendente"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_payroll_management_wizard
|
||||
msgid "Payroll Management"
|
||||
msgstr "Gestione retribuzione"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model,name:hr_payroll_document.model_ir_attachment_payroll_custom
|
||||
msgid "Payroll attachment"
|
||||
msgstr "Allegato retribuzione"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:mail.template,subject:hr_payroll_document.payroll_employee_email_template
|
||||
msgid "Payroll {{ctx.get('subject')}}"
|
||||
msgstr "Retribuzione {{ctx.get('subject')}}"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__payrolls
|
||||
msgid "Payrolls"
|
||||
msgstr "Retribuzioni"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.actions.act_window,name:hr_payroll_document.payrolls_management_wizard_action
|
||||
#: model:ir.ui.menu,name:hr_payroll_document.payrolls_management_wizard_menu_action
|
||||
msgid "Payrolls Management"
|
||||
msgstr "Gestione retribuzioni"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payrolls sent"
|
||||
msgstr "Retribuzioni inviate"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "Payrolls sent to employees correctly"
|
||||
msgstr "Retribuzioni inviate correttamente ai dipendenti"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model_terms:ir.ui.view,arch_db:hr_payroll_document.payrolls_management_wizard_form
|
||||
msgid "Send"
|
||||
msgstr "Invia"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__subject
|
||||
#: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__subject
|
||||
msgid "Subject"
|
||||
msgstr "Oggetto"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/models/hr_employee.py:0
|
||||
#, python-format
|
||||
msgid "The field identification ID is not valid"
|
||||
msgstr "L'ID identificazione file non è corretto"
|
||||
|
||||
#. module: hr_payroll_document
|
||||
#. odoo-python
|
||||
#: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
|
||||
#, python-format
|
||||
msgid "You must to filled country field of company"
|
||||
msgstr "Serve compilare il campo nazione dell'azienda"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
from . import ir_attachment_payroll_custom
|
||||
from . import ir_attachment
|
||||
from . import hr_employee
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
from odoo import _, models
|
||||
from odoo.exceptions import ValidationError
|
||||
|
||||
|
||||
class Employee(models.Model):
|
||||
_inherit = "hr.employee"
|
||||
|
||||
def write(self, vals):
|
||||
res = super().write(vals)
|
||||
if "identification_id" in vals and not self.env["res.partner"].simple_vat_check(
|
||||
self.env.company.country_id.code, vals["identification_id"]
|
||||
):
|
||||
raise ValidationError(_("The field identification ID is not valid"))
|
||||
return res
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
from odoo import fields, models
|
||||
|
||||
|
||||
class Attachment(models.Model):
|
||||
_inherit = "ir.attachment"
|
||||
|
||||
payrol_rel = fields.Many2many(
|
||||
"payroll.management.wizard",
|
||||
"payrolls",
|
||||
"attachment_id3",
|
||||
"document_id",
|
||||
string="Attachment",
|
||||
invisible=1,
|
||||
)
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
from odoo import fields, models
|
||||
|
||||
|
||||
class IRAttachmentPayrollCustom(models.Model):
|
||||
_name = "ir.attachment.payroll.custom"
|
||||
_description = "Payroll attachment"
|
||||
|
||||
attachment_id = fields.Many2one(
|
||||
comodel_name="ir.attachment",
|
||||
string="Attachment File",
|
||||
prefetch=False,
|
||||
invisible=True,
|
||||
ondelete="cascade",
|
||||
)
|
||||
employee = fields.Char()
|
||||
identification_id = fields.Char("Identification ID")
|
||||
create_date = fields.Date(default=fields.Date.context_today)
|
||||
subject = fields.Char()
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
* Antoni Marroig Campomar <amarroig@apsl.net>
|
||||
* Miquel Alzanillas Monserrat <malzanillas@apsl.net>
|
||||
|
|
@ -0,0 +1 @@
|
|||
This module have a wizard view to manage the different payrolls of employees which is identified by the identification_id attribute.
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
payroll_management_wizard,payroll.management.wizard,model_payroll_management_wizard,hr.group_hr_manager,1,1,1,1
|
||||
ir_attachment_payroll_custom,ir.attachment.payroll.custom,model_ir_attachment_payroll_custom,hr.group_hr_manager,1,1,1,1
|
||||
|
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
|
|
@ -0,0 +1,424 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
||||
<title>HR - Payroll Document</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
|
||||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: grey; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="hr-payroll-document">
|
||||
<h1 class="title">HR - Payroll Document</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:3698f5f5e529d5d32ae80cdc1ab30660ad4e5d39b6d98f8dace97a0b233743c5
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/payroll/tree/16.0/hr_payroll_document"><img alt="OCA/payroll" src="https://img.shields.io/badge/github-OCA%2Fpayroll-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/payroll-16-0/payroll-16-0-hr_payroll_document"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/payroll&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module have a wizard view to manage the different payrolls of employees which is identified by the identification_id attribute.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="toc-entry-4">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="toc-entry-5">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/payroll/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/payroll/issues/new?body=module:%20hr_payroll_document%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#toc-entry-2">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>APSL</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Antoni Marroig Campomar <<a class="reference external" href="mailto:amarroig@apsl.net">amarroig@apsl.net</a>></li>
|
||||
<li>Miquel Alzanillas Monserrat <<a class="reference external" href="mailto:malzanillas@apsl.net">malzanillas@apsl.net</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>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.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external image-reference" href="https://github.com/peluko00"><img alt="peluko00" src="https://github.com/peluko00.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/payroll/tree/16.0/hr_payroll_document">OCA/payroll</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
from . import test_hr_payroll_document
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
import base64
|
||||
|
||||
from odoo.modules.module import get_module_resource
|
||||
from odoo.tests import common
|
||||
|
||||
from odoo.addons.mail.tests.common import mail_new_test_user
|
||||
|
||||
|
||||
class TestHrPayrollDocument(common.TransactionCase):
|
||||
def setUp(self):
|
||||
super(TestHrPayrollDocument, self).setUp()
|
||||
self.env.user.tz = "Europe/Brussels"
|
||||
self.user_admin = self.env.ref("base.user_admin")
|
||||
|
||||
# Fix Company without country
|
||||
self.env.company.country_id = False
|
||||
|
||||
# Test users to use through the various tests
|
||||
self.user_employee = mail_new_test_user(
|
||||
self.env, login="david", groups="base.group_user"
|
||||
)
|
||||
self.user_employee_id = self.user_employee.id
|
||||
|
||||
# Hr Data
|
||||
self.employee_emp = self.env["hr.employee"].create(
|
||||
{
|
||||
"name": "David Employee",
|
||||
"user_id": self.user_employee_id,
|
||||
"company_id": 1,
|
||||
"identification_id": "30831011V",
|
||||
}
|
||||
)
|
||||
|
||||
with open(
|
||||
get_module_resource("hr_payroll_document", "tests", "test.pdf"), "rb"
|
||||
) as pdf_file:
|
||||
encoded_string = base64.b64encode(pdf_file.read())
|
||||
ir_values = {
|
||||
"name": "test",
|
||||
"type": "binary",
|
||||
"datas": encoded_string,
|
||||
"store_fname": encoded_string,
|
||||
"res_model": "payroll.management.wizard",
|
||||
"res_id": 1,
|
||||
}
|
||||
self.attachment = self.env["ir.attachment"].create(ir_values)
|
||||
self.subject = "January"
|
||||
self.wizard = self.env["payroll.management.wizard"].create(
|
||||
{"payrolls": [self.attachment.id], "subject": self.subject}
|
||||
)
|
||||
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,107 @@
|
|||
import base64
|
||||
|
||||
from odoo import _
|
||||
from odoo.exceptions import UserError, ValidationError
|
||||
from odoo.modules.module import get_module_resource
|
||||
|
||||
from odoo.addons.hr_payroll_document.tests.common import TestHrPayrollDocument
|
||||
|
||||
|
||||
class TestHRPayrollDocument(TestHrPayrollDocument):
|
||||
def setUp(self, *args, **kwargs):
|
||||
super().setUp(*args, **kwargs)
|
||||
|
||||
def fill_company_id(self):
|
||||
self.env.company.country_id = self.env["res.country"].search(
|
||||
[("name", "=", "Spain")]
|
||||
)
|
||||
|
||||
def test_extension_error(self):
|
||||
with open(
|
||||
get_module_resource("hr_payroll_document", "tests", "test.docx"), "rb"
|
||||
) as pdf_file:
|
||||
encoded_string = base64.b64encode(pdf_file.read())
|
||||
ir_values = {
|
||||
"name": "test",
|
||||
"type": "binary",
|
||||
"datas": encoded_string,
|
||||
"store_fname": encoded_string,
|
||||
"res_model": "payroll.management.wizard",
|
||||
"res_id": 1,
|
||||
}
|
||||
self.attachment = self.env["ir.attachment"].create(ir_values)
|
||||
self.subject = "January"
|
||||
self.wizard = self.env["payroll.management.wizard"].create(
|
||||
{"payrolls": [self.attachment.id], "subject": self.subject}
|
||||
)
|
||||
with self.assertRaises(ValidationError):
|
||||
self.wizard.send_payrolls()
|
||||
|
||||
def test_company_id_required(self):
|
||||
with self.assertRaises(UserError):
|
||||
self.wizard.send_payrolls()
|
||||
|
||||
def test_employee_vat_not_valid(self):
|
||||
self.fill_company_id()
|
||||
with self.assertRaises(ValidationError):
|
||||
employees = self.env["hr.employee"].search([])
|
||||
for employee in employees:
|
||||
if not employee.identification_id:
|
||||
employee.identification_id = "XXXXXXX"
|
||||
|
||||
def test_one_employee_not_found(self):
|
||||
self.fill_company_id()
|
||||
self.env["hr.employee"].search([("id", "=", 1)]).identification_id = "37936636E"
|
||||
self.assertEqual(
|
||||
self.wizard.send_payrolls(),
|
||||
{
|
||||
"type": "ir.actions.client",
|
||||
"tag": "display_notification",
|
||||
"params": {
|
||||
"title": _("Employees not found"),
|
||||
"message": _("IDs whose employee has not been found: ")
|
||||
+ "51000278D",
|
||||
"sticky": True,
|
||||
"type": "warning",
|
||||
"next": {
|
||||
"name": _("Payrolls sent"),
|
||||
"type": "ir.actions.act_window",
|
||||
"res_model": "hr.employee",
|
||||
"views": [
|
||||
(
|
||||
self.env.ref("hr.hr_employee_public_view_kanban").id,
|
||||
"list",
|
||||
)
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
def test_send_payrolls_correctly(self):
|
||||
self.fill_company_id()
|
||||
self.env["hr.employee"].search([("id", "=", 1)]).identification_id = "51000278D"
|
||||
self.assertEqual(
|
||||
self.wizard.send_payrolls(),
|
||||
{
|
||||
"type": "ir.actions.client",
|
||||
"tag": "display_notification",
|
||||
"params": {
|
||||
"title": _("Payrolls sent"),
|
||||
"message": _("Payrolls sent to employees correctly"),
|
||||
"sticky": False,
|
||||
"type": "success",
|
||||
"next": {
|
||||
"name": _("Payrolls sent"),
|
||||
"type": "ir.actions.act_window",
|
||||
"res_model": "hr.employee",
|
||||
"views": [
|
||||
(
|
||||
self.env.ref("hr.hr_employee_public_view_kanban").id,
|
||||
"list",
|
||||
)
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
|
|
@ -0,0 +1 @@
|
|||
from . import payroll_management_wizard
|
||||
|
|
@ -0,0 +1,169 @@
|
|||
import base64
|
||||
from base64 import b64decode
|
||||
|
||||
from pypdf import PdfReader, PdfWriter
|
||||
|
||||
from odoo import _, fields, models
|
||||
from odoo.exceptions import UserError, ValidationError
|
||||
|
||||
|
||||
class PayrollManagamentWizard(models.TransientModel):
|
||||
_name = "payroll.management.wizard"
|
||||
_description = "Payroll Management"
|
||||
|
||||
subject = fields.Char(
|
||||
help="Enter the title of the payroll whether it is the month, week, day, etc."
|
||||
)
|
||||
payrolls = fields.Many2many(
|
||||
"ir.attachment",
|
||||
"payrol_rel",
|
||||
"doc_id",
|
||||
"attach_id3",
|
||||
copy=False,
|
||||
)
|
||||
|
||||
def send_payrolls(self):
|
||||
not_found = set()
|
||||
self.merge_pdfs()
|
||||
reader = PdfReader("/tmp/merged-pdf.pdf")
|
||||
employees = set()
|
||||
|
||||
# Validate if company have country
|
||||
if not self.env.company.country_id:
|
||||
raise UserError(_("You must to filled country field of company"))
|
||||
|
||||
# Find all IDs of the employees
|
||||
for page in reader.pages:
|
||||
for value in page.extract_text().split():
|
||||
if self.validate_id(value) and value != self.env.company.vat:
|
||||
employee = self.env["hr.employee"].search(
|
||||
[("identification_id", "=", value)]
|
||||
)
|
||||
if employee:
|
||||
employees.add(employee)
|
||||
else:
|
||||
not_found.add(value)
|
||||
break
|
||||
|
||||
for employee in list(employees):
|
||||
pdfWriter = PdfWriter()
|
||||
for page in reader.pages:
|
||||
if employee.identification_id in page.extract_text():
|
||||
# Save pdf with payrolls of employee
|
||||
pdfWriter.add_page(page)
|
||||
|
||||
path = "/tmp/" + _("Payroll ") + employee.name + ".pdf"
|
||||
|
||||
# Encrypt the payroll file with the identification identifier of the employee
|
||||
pdfWriter.encrypt(employee.identification_id, algorithm="AES-256")
|
||||
|
||||
f = open(path, "wb")
|
||||
pdfWriter.write(f)
|
||||
f.close()
|
||||
|
||||
# Send payroll to the employee
|
||||
self.send_mail(employee, path)
|
||||
|
||||
if not_found:
|
||||
return {
|
||||
"type": "ir.actions.client",
|
||||
"tag": "display_notification",
|
||||
"params": {
|
||||
"title": _("Employees not found"),
|
||||
"message": _("IDs whose employee has not been found: ")
|
||||
+ ", ".join(list(not_found)),
|
||||
"sticky": True,
|
||||
"type": "warning",
|
||||
"next": {
|
||||
"name": _("Payrolls sent"),
|
||||
"type": "ir.actions.act_window",
|
||||
"res_model": "hr.employee",
|
||||
"views": [
|
||||
(
|
||||
self.env.ref("hr.hr_employee_public_view_kanban").id,
|
||||
"list",
|
||||
)
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return {
|
||||
"type": "ir.actions.client",
|
||||
"tag": "display_notification",
|
||||
"params": {
|
||||
"title": _("Payrolls sent"),
|
||||
"message": _("Payrolls sent to employees correctly"),
|
||||
"sticky": False,
|
||||
"type": "success",
|
||||
"next": {
|
||||
"name": _("Payrolls sent"),
|
||||
"type": "ir.actions.act_window",
|
||||
"res_model": "hr.employee",
|
||||
"views": [
|
||||
(self.env.ref("hr.hr_employee_public_view_kanban").id, "list")
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
def merge_pdfs(self):
|
||||
# Merge the pdfs together
|
||||
pdfs = []
|
||||
for file in self.payrolls:
|
||||
b64 = file.datas
|
||||
btes = b64decode(b64, validate=True)
|
||||
if btes[0:4] != b"%PDF":
|
||||
raise ValidationError(_("Missing pdf file signature"))
|
||||
f = open("/tmp/" + file.name, "wb")
|
||||
f.write(btes)
|
||||
f.close()
|
||||
pdfs.append(f.name)
|
||||
|
||||
merger = PdfWriter()
|
||||
|
||||
for pdf in pdfs:
|
||||
merger.append(pdf)
|
||||
|
||||
merger.write("/tmp/merged-pdf.pdf")
|
||||
merger.close()
|
||||
|
||||
def send_mail(self, employee, path):
|
||||
# Open Payrolls of employee and encode content
|
||||
with open(path, "rb") as pdf_file:
|
||||
encoded_string = base64.b64encode(pdf_file.read())
|
||||
|
||||
# Attach file to email
|
||||
ir_values = {
|
||||
"name": _("Payroll") + "_" + self.subject + "_" + employee.name,
|
||||
"type": "binary",
|
||||
"datas": encoded_string,
|
||||
"store_fname": encoded_string,
|
||||
"res_model": "hr.employee",
|
||||
"res_id": employee.id,
|
||||
}
|
||||
|
||||
# Save payroll attachment to all employee payrolls attachments
|
||||
self.env["ir.attachment.payroll.custom"].create(
|
||||
{
|
||||
"attachment_id": self.env["ir.attachment"].create(ir_values).id,
|
||||
"employee": employee.name,
|
||||
"subject": self.subject,
|
||||
"identification_id": employee.identification_id,
|
||||
}
|
||||
)
|
||||
|
||||
# Send mail
|
||||
mail_template = self.env.ref(
|
||||
"hr_payroll_document.payroll_employee_email_template"
|
||||
)
|
||||
data_id = [(6, 0, [self.env["ir.attachment"].create(ir_values).id])]
|
||||
mail_template.attachment_ids = data_id
|
||||
mail_template.with_context(**{"subject": self.subject}).send_mail(
|
||||
employee.id, force_send=True
|
||||
)
|
||||
|
||||
def validate_id(self, number):
|
||||
return self.env["res.partner"].simple_vat_check(
|
||||
self.env.company.country_id.code, number
|
||||
)
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="payrolls_management_wizard_form" model="ir.ui.view">
|
||||
<field name="name">payroll.management.wizard.form</field>
|
||||
<field name="model">payroll.management.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="subject" required="1" />
|
||||
</group>
|
||||
<field name="payrolls" widget="many2many_binary" />
|
||||
<footer>
|
||||
<button
|
||||
string="Send"
|
||||
name="send_payrolls"
|
||||
type="object"
|
||||
class="oe_highlight"
|
||||
/>
|
||||
<button
|
||||
string="Close"
|
||||
class="btn btn-secondary"
|
||||
special="cancel"
|
||||
/>
|
||||
</footer>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="payrolls_management_wizard_action" model="ir.actions.act_window">
|
||||
<field name="name">Payrolls Management</field>
|
||||
<field name="res_model">payroll.management.wizard</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="payrolls_management_wizard_menu_action"
|
||||
action="payrolls_management_wizard_action"
|
||||
parent="hr.menu_hr_root"
|
||||
/>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue