odoo-addon-hr-payroll-document 16.0.1.0.0.4__py3-none-any.whl → 17.0.1.0.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of odoo-addon-hr-payroll-document might be problematic. Click here for more details.

Files changed (24) hide show
  1. odoo/addons/hr_payroll_document/README.rst +20 -13
  2. odoo/addons/hr_payroll_document/__manifest__.py +2 -1
  3. odoo/addons/hr_payroll_document/i18n/es.po +46 -69
  4. odoo/addons/hr_payroll_document/i18n/hr_payroll_document.pot +37 -11
  5. odoo/addons/hr_payroll_document/models/__init__.py +1 -0
  6. odoo/addons/hr_payroll_document/models/hr_employee.py +31 -1
  7. odoo/addons/hr_payroll_document/models/ir_attachment.py +1 -1
  8. odoo/addons/hr_payroll_document/models/ir_attachment_payroll_custom.py +6 -1
  9. odoo/addons/hr_payroll_document/models/res_users.py +20 -0
  10. odoo/addons/hr_payroll_document/readme/CONTRIBUTORS.md +3 -0
  11. odoo/addons/hr_payroll_document/static/description/index.html +32 -20
  12. odoo/addons/hr_payroll_document/tests/test_hr_payroll_document.py +55 -53
  13. odoo/addons/hr_payroll_document/views/hr_employee_views.xml +107 -0
  14. odoo/addons/hr_payroll_document/wizard/payroll_management_wizard.py +14 -27
  15. odoo/addons/hr_payroll_document/wizard/payroll_management_wizard.xml +2 -1
  16. {odoo_addon_hr_payroll_document-16.0.1.0.0.4.dist-info → odoo_addon_hr_payroll_document-17.0.1.0.0.2.dist-info}/METADATA +28 -23
  17. odoo_addon_hr_payroll_document-17.0.1.0.0.2.dist-info/RECORD +30 -0
  18. {odoo_addon_hr_payroll_document-16.0.1.0.0.4.dist-info → odoo_addon_hr_payroll_document-17.0.1.0.0.2.dist-info}/WHEEL +1 -1
  19. odoo_addon_hr_payroll_document-17.0.1.0.0.2.dist-info/top_level.txt +1 -0
  20. odoo/addons/hr_payroll_document/readme/CONTRIBUTORS.rst +0 -2
  21. odoo/addons/hr_payroll_document/tests/common.py +0 -51
  22. odoo_addon_hr_payroll_document-16.0.1.0.0.4.dist-info/RECORD +0 -29
  23. odoo_addon_hr_payroll_document-16.0.1.0.0.4.dist-info/top_level.txt +0 -1
  24. /odoo/addons/hr_payroll_document/readme/{DESCRIPTION.rst → DESCRIPTION.md} +0 -0
@@ -1,3 +1,7 @@
1
+ .. image:: https://odoo-community.org/readme-banner-image
2
+ :target: https://odoo-community.org/get-involved?utm_source=readme
3
+ :alt: Odoo Community Association
4
+
1
5
  =====================
2
6
  HR - Payroll Document
3
7
  =====================
@@ -7,28 +11,29 @@ HR - Payroll Document
7
11
  !! This file is generated by oca-gen-addon-readme !!
8
12
  !! changes will be overwritten. !!
9
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:3698f5f5e529d5d32ae80cdc1ab30660ad4e5d39b6d98f8dace97a0b233743c5
14
+ !! source digest: sha256:8541f32cab0e71108ff8c422d602825bb599e0141fe69b9342c16742bee0b915
11
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
16
 
13
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14
18
  :target: https://odoo-community.org/page/development-status
15
19
  :alt: Beta
16
- .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
17
21
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18
22
  :alt: License: AGPL-3
19
23
  .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpayroll-lightgray.png?logo=github
20
- :target: https://github.com/OCA/payroll/tree/16.0/hr_payroll_document
24
+ :target: https://github.com/OCA/payroll/tree/17.0/hr_payroll_document
21
25
  :alt: OCA/payroll
22
26
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23
- :target: https://translation.odoo-community.org/projects/payroll-16-0/payroll-16-0-hr_payroll_document
27
+ :target: https://translation.odoo-community.org/projects/payroll-17-0/payroll-17-0-hr_payroll_document
24
28
  :alt: Translate me on Weblate
25
29
  .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26
- :target: https://runboat.odoo-community.org/builds?repo=OCA/payroll&target_branch=16.0
30
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/payroll&target_branch=17.0
27
31
  :alt: Try me on Runboat
28
32
 
29
33
  |badge1| |badge2| |badge3| |badge4| |badge5|
30
34
 
31
- This module have a wizard view to manage the different payrolls of employees which is identified by the identification_id attribute.
35
+ This module have a wizard view to manage the different payrolls of
36
+ employees which is identified by the identification_id attribute.
32
37
 
33
38
  **Table of contents**
34
39
 
@@ -41,7 +46,7 @@ Bug Tracker
41
46
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/payroll/issues>`_.
42
47
  In case of trouble, please check there if your issue has already been reported.
43
48
  If you spotted it first, help us to smash it by providing a detailed and welcomed
44
- `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**>`_.
49
+ `feedback <https://github.com/OCA/payroll/issues/new?body=module:%20hr_payroll_document%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
45
50
 
46
51
  Do not contact contributors directly about support or help with technical issues.
47
52
 
@@ -49,18 +54,20 @@ Credits
49
54
  =======
50
55
 
51
56
  Authors
52
- ~~~~~~~
57
+ -------
53
58
 
54
59
  * APSL
55
60
 
56
61
  Contributors
57
- ~~~~~~~~~~~~
62
+ ------------
63
+
64
+ - `APSL-Nagarro <https://www.apsl.tech>`__:
58
65
 
59
- * Antoni Marroig Campomar <amarroig@apsl.net>
60
- * Miquel Alzanillas Monserrat <malzanillas@apsl.net>
66
+ - Antoni Marroig <amarroig@apsl.net>
67
+ - Miquel Alzanillas <malzanillas@apsl.net>
61
68
 
62
69
  Maintainers
63
- ~~~~~~~~~~~
70
+ -----------
64
71
 
65
72
  This module is maintained by the OCA.
66
73
 
@@ -80,6 +87,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
80
87
 
81
88
  |maintainer-peluko00|
82
89
 
83
- This module is part of the `OCA/payroll <https://github.com/OCA/payroll/tree/16.0/hr_payroll_document>`_ project on GitHub.
90
+ This module is part of the `OCA/payroll <https://github.com/OCA/payroll/tree/17.0/hr_payroll_document>`_ project on GitHub.
84
91
 
85
92
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -5,7 +5,7 @@
5
5
  "website": "https://github.com/OCA/payroll",
6
6
  "license": "AGPL-3",
7
7
  "category": "Payrolls",
8
- "version": "16.0.1.0.0",
8
+ "version": "17.0.1.0.0",
9
9
  "depends": ["hr", "base_vat"],
10
10
  "maintainers": ["peluko00"],
11
11
  "external_dependencies": {"python": ["pypdf"]},
@@ -13,5 +13,6 @@
13
13
  "wizard/payroll_management_wizard.xml",
14
14
  "security/ir.model.access.csv",
15
15
  "data/email_payroll_employee.xml",
16
+ "views/hr_employee_views.xml",
16
17
  ],
17
18
  }
@@ -4,13 +4,12 @@
4
4
  #
5
5
  msgid ""
6
6
  msgstr ""
7
- "Project-Id-Version: Odoo Server 16.0\n"
7
+ "Project-Id-Version: Odoo Server 17.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "POT-Creation-Date: 2023-12-14 10:28+0000\n"
10
- "PO-Revision-Date: 2023-12-14 10:28+0000\n"
9
+ "POT-Creation-Date: 2024-05-21 15:13+0000\n"
10
+ "PO-Revision-Date: 2024-05-21 15:13+0000\n"
11
11
  "Last-Translator: \n"
12
12
  "Language-Team: \n"
13
- "Language: \n"
14
13
  "MIME-Version: 1.0\n"
15
14
  "Content-Type: text/plain; charset=UTF-8\n"
16
15
  "Content-Transfer-Encoding: \n"
@@ -23,34 +22,7 @@ msgid ""
23
22
  " <html>\n"
24
23
  " <head></head>\n"
25
24
  " <body style=\"margin: 0; padding: 0;\">\n"
26
- " <table style=\"padding:20px;background-color:#ededed; "
27
- "border-collapse:separate\" width=\"100%\" cellpadding=\"0\" "
28
- "border=\"0\"><tbody><!-- HEADER --><tr><td style=\"min-width:590px\" "
29
- "align=\"center\"><table style=\"min-width:590px;background-color:#fff; "
30
- "padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" "
31
- "border=\"0\"><tbody><tr><td style=\"text-align:right\" "
32
- "valign=\"middle\"><img src=\"/logo.png\" style=\"padding:0px;margin:0px; "
33
- "height:auto; width:80px\" alt=\"{{object.company_id.name}}\"></td></"
34
- "tr><tr><td style=\"text-align:left\" valign=\"middle\"><h2 style=\"color:"
35
- "rgb(28, 130, 156)\"><font style=\"color:rgb(107, 175, 103);\">Payroll <t t-"
36
- "out=\"ctx.get('subject')\" contenteditable=\"false\" data-oe-t-"
37
- "inline=\"true\"/></font></h2></td></tr></tbody></table></td></tr><!-- "
38
- "CONTENT --><tr><td style=\"min-width:590px\" align=\"center\"><table "
39
- "style=\"min-width:590px;background-color:rgb(255, 255, 255); padding:20px; "
40
- "border-collapse:separate\" width=\"590\" cellpadding=\"0\" "
41
- "border=\"0\"><tbody><tr><td style=\"font-family:Arial,Helvetica,sans-serif;"
42
- "color:#555; font-size:14px\" valign=\"top\"><p> </p><p>Hello <t t-"
43
- "out=\"object.name\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>,</"
44
- "p><br><p>We send you the payroll with the subject <t t-out=\"ctx."
45
- "get('subject')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/>.<br></"
46
- "p></td></tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:"
47
- "#555; font-size:14px\" valign=\"top\"><br></td></tr><tr><td style=\"font-"
48
- "family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" "
49
- "valign=\"top\"><br><p></p></td></tr></tbody></table></td></tr><!-- FOOTER --"
50
- "><tr><td style=\"min-width:590px\" align=\"center\"><table style=\"min-"
51
- "width:590px;background-color:#95ce3f; padding:20px; border-collapse:"
52
- "separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody> </tbody></"
53
- "table></td></tr></tbody></table>\n"
25
+ " <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"
54
26
  " <p></p>\n"
55
27
  " </html>\n"
56
28
  " \n"
@@ -60,34 +32,7 @@ msgstr ""
60
32
  " <html>\n"
61
33
  " <head></head>\n"
62
34
  " <body style=\"margin: 0; padding: 0;\">\n"
63
- " <table style=\"padding:20px;background-color:#ededed; "
64
- "border-collapse:separate\" width=\"100%\" cellpadding=\"0\" "
65
- "border=\"0\"><tbody><!-- HEADER --><tr><td style=\"min-width:590px\" "
66
- "align=\"center\"><table style=\"min-width:590px;background-color:#fff; "
67
- "padding:20px; border-collapse:separate\" width=\"590\" cellpadding=\"0\" "
68
- "border=\"0\"><tbody><tr><td style=\"text-align:right\" "
69
- "valign=\"middle\"><img src=\"/logo.png\" style=\"padding:0px;margin:0px; "
70
- "height:auto; width:80px\" alt=\"{{object.company_id.name}}\"></td></"
71
- "tr><tr><td style=\"text-align:left\" valign=\"middle\"><h2 style=\"color:"
72
- "rgb(28, 130, 156)\"><font style=\"color:rgb(107, 175, 103);\">Nómina <t t-"
73
- "out=\"ctx.get('month')\" contenteditable=\"false\" data-oe-t-inline=\"true\"/"
74
- "></font></h2></td></tr></tbody></table></td></tr><!-- CONTENT --><tr><td "
75
- "style=\"min-width:590px\" align=\"center\"><table style=\"min-width:590px;"
76
- "background-color:rgb(255, 255, 255); padding:20px; border-collapse:"
77
- "separate\" width=\"590\" cellpadding=\"0\" border=\"0\"><tbody><tr><td "
78
- "style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-size:14px\" "
79
- "valign=\"top\"><p> </p><p>Hola <t t-out=\"object.name\" "
80
- "contenteditable=\"false\" data-oe-t-inline=\"true\"/>,</p><br><p>Te enviamos "
81
- "la nómina del mes de <t t-out=\"ctx.get('subject')\" "
82
- "contenteditable=\"false\" data-oe-t-inline=\"true\"/>.<br></p></td></"
83
- "tr><tr><td style=\"font-family:Arial,Helvetica,sans-serif;color:#555; font-"
84
- "size:14px\" valign=\"top\"><br></td></tr><tr><td style=\"font-family:Arial,"
85
- "Helvetica,sans-serif;color:#555; font-size:14px\" valign=\"top\"><br><p></"
86
- "p></td></tr></tbody></table></td></tr><!-- FOOTER --><tr><td style=\"min-"
87
- "width:590px\" align=\"center\"><table style=\"min-width:590px;background-"
88
- "color:#95ce3f; padding:20px; border-collapse:separate\" width=\"590\" "
89
- "cellpadding=\"0\" border=\"0\"><tbody> </tbody></table></td></tr></tbody></"
90
- "table>\n"
35
+ " <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 con el asunto <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"
91
36
  " <p></p>\n"
92
37
  " </html>\n"
93
38
  " \n"
@@ -96,8 +41,9 @@ msgstr ""
96
41
  #. module: hr_payroll_document
97
42
  #: model:ir.model,name:hr_payroll_document.model_ir_attachment
98
43
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment__payrol_rel
44
+ #: model:ir.model.fields,field_description:hr_payroll_document.field_product_document__payrol_rel
99
45
  msgid "Attachment"
100
- msgstr "Adjunto"
46
+ msgstr "Archivo adjunto"
101
47
 
102
48
  #. module: hr_payroll_document
103
49
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__attachment_id
@@ -131,9 +77,21 @@ msgstr "Creado el"
131
77
  msgid "Display Name"
132
78
  msgstr "Nombre para mostrar"
133
79
 
80
+ #. module: hr_payroll_document
81
+ #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment__document_type
82
+ #: model:ir.model.fields,field_description:hr_payroll_document.field_product_document__document_type
83
+ msgid "Document Type"
84
+ msgstr "Tipo de documento"
85
+
86
+ #. module: hr_payroll_document
87
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_tree
88
+ msgid "Download"
89
+ msgstr "Descargar"
90
+
134
91
  #. module: hr_payroll_document
135
92
  #: model:ir.model,name:hr_payroll_document.model_hr_employee
136
93
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__employee
94
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_filter
137
95
  msgid "Employee"
138
96
  msgstr "Empleado"
139
97
 
@@ -147,9 +105,15 @@ msgstr "Empleados no encontrados"
147
105
 
148
106
  #. module: hr_payroll_document
149
107
  #: model:ir.model.fields,help:hr_payroll_document.field_payroll_management_wizard__subject
150
- msgid "Enter the title of the payroll whether it is the month, week, day, etc."
108
+ msgid ""
109
+ "Enter the title of the payroll whether it is the month, week, day, etc."
151
110
  msgstr "Introduzca el título de la nómina ya sea el mes, semana, día , etc.."
152
111
 
112
+ #. module: hr_payroll_document
113
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_filter
114
+ msgid "Group By"
115
+ msgstr ""
116
+
153
117
  #. module: hr_payroll_document
154
118
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__id
155
119
  #: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__id
@@ -166,15 +130,10 @@ msgstr "IDs de los empleados que no se han encontrado: "
166
130
 
167
131
  #. module: hr_payroll_document
168
132
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__identification_id
133
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_filter
169
134
  msgid "Identification ID"
170
135
  msgstr "Identificación ID"
171
136
 
172
- #. module: hr_payroll_document
173
- #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom____last_update
174
- #: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard____last_update
175
- msgid "Last Modified on"
176
- msgstr "Última modificación el"
177
-
178
137
  #. module: hr_payroll_document
179
138
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_uid
180
139
  #: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_uid
@@ -197,6 +156,7 @@ msgstr "Los archivos tienen que ser de tipo pdf"
197
156
  #. module: hr_payroll_document
198
157
  #. odoo-python
199
158
  #: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
159
+ #: model:ir.model.fields.selection,name:hr_payroll_document.selection__ir_attachment__document_type__payroll
200
160
  #, python-format
201
161
  msgid "Payroll"
202
162
  msgstr "Nómina"
@@ -208,6 +168,11 @@ msgstr "Nómina"
208
168
  msgid "Payroll "
209
169
  msgstr "Nómina "
210
170
 
171
+ #. module: hr_payroll_document
172
+ #: model:ir.model.fields,field_description:hr_payroll_document.field_hr_employee__payroll_count
173
+ msgid "Payroll Count"
174
+ msgstr "Recuento de Nóminas"
175
+
211
176
  #. module: hr_payroll_document
212
177
  #: model:mail.template,name:hr_payroll_document.payroll_employee_email_template
213
178
  msgid "Payroll Employee"
@@ -226,10 +191,16 @@ msgstr "Adjunto Nómina"
226
191
  #. module: hr_payroll_document
227
192
  #: model:mail.template,subject:hr_payroll_document.payroll_employee_email_template
228
193
  msgid "Payroll {{ctx.get('subject')}}"
229
- msgstr "Nómina {{ctx.get('month')}}"
194
+ msgstr "Nómina {{ctx.get('subject')}}"
230
195
 
231
196
  #. module: hr_payroll_document
197
+ #: model:ir.actions.act_window,name:hr_payroll_document.payrolls_view_action
232
198
  #: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__payrolls
199
+ #: model:ir.ui.menu,name:hr_payroll_document.payrolls_menu_action
200
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.hr_employee_view_tree_payroll
201
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.res_users_view_form_profile_inherit
202
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_filter
203
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_tree
233
204
  msgid "Payrolls"
234
205
  msgstr "Nóminas"
235
206
 
@@ -263,6 +234,7 @@ msgstr "Enviar"
263
234
  #. module: hr_payroll_document
264
235
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__subject
265
236
  #: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__subject
237
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_filter
266
238
  msgid "Subject"
267
239
  msgstr "Asunto"
268
240
 
@@ -273,6 +245,11 @@ msgstr "Asunto"
273
245
  msgid "The field identification ID is not valid"
274
246
  msgstr "El campo identificativo ID no es válido"
275
247
 
248
+ #. module: hr_payroll_document
249
+ #: model:ir.model,name:hr_payroll_document.model_res_users
250
+ msgid "User"
251
+ msgstr "Usuario"
252
+
276
253
  #. module: hr_payroll_document
277
254
  #. odoo-python
278
255
  #: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
@@ -4,7 +4,7 @@
4
4
  #
5
5
  msgid ""
6
6
  msgstr ""
7
- "Project-Id-Version: Odoo Server 16.0\n"
7
+ "Project-Id-Version: Odoo Server 17.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
9
  "Last-Translator: \n"
10
10
  "Language-Team: \n"
@@ -30,6 +30,7 @@ msgstr ""
30
30
  #. module: hr_payroll_document
31
31
  #: model:ir.model,name:hr_payroll_document.model_ir_attachment
32
32
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment__payrol_rel
33
+ #: model:ir.model.fields,field_description:hr_payroll_document.field_product_document__payrol_rel
33
34
  msgid "Attachment"
34
35
  msgstr ""
35
36
 
@@ -65,9 +66,21 @@ msgstr ""
65
66
  msgid "Display Name"
66
67
  msgstr ""
67
68
 
69
+ #. module: hr_payroll_document
70
+ #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment__document_type
71
+ #: model:ir.model.fields,field_description:hr_payroll_document.field_product_document__document_type
72
+ msgid "Document Type"
73
+ msgstr ""
74
+
75
+ #. module: hr_payroll_document
76
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_tree
77
+ msgid "Download"
78
+ msgstr ""
79
+
68
80
  #. module: hr_payroll_document
69
81
  #: model:ir.model,name:hr_payroll_document.model_hr_employee
70
82
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__employee
83
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_filter
71
84
  msgid "Employee"
72
85
  msgstr ""
73
86
 
@@ -85,6 +98,11 @@ msgid ""
85
98
  "Enter the title of the payroll whether it is the month, week, day, etc."
86
99
  msgstr ""
87
100
 
101
+ #. module: hr_payroll_document
102
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_filter
103
+ msgid "Group By"
104
+ msgstr ""
105
+
88
106
  #. module: hr_payroll_document
89
107
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__id
90
108
  #: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__id
@@ -101,15 +119,10 @@ msgstr ""
101
119
 
102
120
  #. module: hr_payroll_document
103
121
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__identification_id
122
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_filter
104
123
  msgid "Identification ID"
105
124
  msgstr ""
106
125
 
107
- #. module: hr_payroll_document
108
- #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom____last_update
109
- #: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard____last_update
110
- msgid "Last Modified on"
111
- msgstr ""
112
-
113
126
  #. module: hr_payroll_document
114
127
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__write_uid
115
128
  #: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__write_uid
@@ -132,6 +145,7 @@ msgstr ""
132
145
  #. module: hr_payroll_document
133
146
  #. odoo-python
134
147
  #: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
148
+ #: model:ir.model.fields.selection,name:hr_payroll_document.selection__ir_attachment__document_type__payroll
135
149
  #, python-format
136
150
  msgid "Payroll"
137
151
  msgstr ""
@@ -143,6 +157,11 @@ msgstr ""
143
157
  msgid "Payroll "
144
158
  msgstr ""
145
159
 
160
+ #. module: hr_payroll_document
161
+ #: model:ir.model.fields,field_description:hr_payroll_document.field_hr_employee__payroll_count
162
+ msgid "Payroll Count"
163
+ msgstr ""
164
+
146
165
  #. module: hr_payroll_document
147
166
  #: model:mail.template,name:hr_payroll_document.payroll_employee_email_template
148
167
  msgid "Payroll Employee"
@@ -164,7 +183,12 @@ msgid "Payroll {{ctx.get('subject')}}"
164
183
  msgstr ""
165
184
 
166
185
  #. module: hr_payroll_document
186
+ #: model:ir.actions.act_window,name:hr_payroll_document.payrolls_view_action
167
187
  #: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__payrolls
188
+ #: model:ir.ui.menu,name:hr_payroll_document.payrolls_menu_action
189
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.hr_employee_view_tree_payroll
190
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.res_users_view_form_profile_inherit
191
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_filter
168
192
  msgid "Payrolls"
169
193
  msgstr ""
170
194
 
@@ -177,10 +201,6 @@ msgstr ""
177
201
  #. module: hr_payroll_document
178
202
  #. odoo-python
179
203
  #: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
180
- #: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
181
- #: code:addons/hr_payroll_document/tests/test_hr_payroll_document.py:0
182
- #: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
183
- #: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
184
204
  #: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
185
205
  #, python-format
186
206
  msgid "Payrolls sent"
@@ -202,6 +222,7 @@ msgstr ""
202
222
  #. module: hr_payroll_document
203
223
  #: model:ir.model.fields,field_description:hr_payroll_document.field_ir_attachment_payroll_custom__subject
204
224
  #: model:ir.model.fields,field_description:hr_payroll_document.field_payroll_management_wizard__subject
225
+ #: model_terms:ir.ui.view,arch_db:hr_payroll_document.view_payroll_filter
205
226
  msgid "Subject"
206
227
  msgstr ""
207
228
 
@@ -212,6 +233,11 @@ msgstr ""
212
233
  msgid "The field identification ID is not valid"
213
234
  msgstr ""
214
235
 
236
+ #. module: hr_payroll_document
237
+ #: model:ir.model,name:hr_payroll_document.model_res_users
238
+ msgid "User"
239
+ msgstr ""
240
+
215
241
  #. module: hr_payroll_document
216
242
  #. odoo-python
217
243
  #: code:addons/hr_payroll_document/wizard/payroll_management_wizard.py:0
@@ -1,3 +1,4 @@
1
1
  from . import ir_attachment_payroll_custom
2
2
  from . import ir_attachment
3
3
  from . import hr_employee
4
+ from . import res_users
@@ -1,10 +1,40 @@
1
- from odoo import _, models
1
+ from odoo import _, fields, models
2
2
  from odoo.exceptions import ValidationError
3
3
 
4
4
 
5
5
  class Employee(models.Model):
6
6
  _inherit = "hr.employee"
7
7
 
8
+ payroll_count = fields.Integer(
9
+ compute="_compute_payroll_count",
10
+ )
11
+
12
+ def _compute_payroll_count(self):
13
+ self.payroll_count = len(
14
+ self.env["ir.attachment"].search(
15
+ [
16
+ ("document_type", "=", "payroll"),
17
+ ("res_model", "=", self._name),
18
+ ("res_id", "in", self.ids),
19
+ ]
20
+ )
21
+ )
22
+
23
+ def action_get_payroll_tree_view(self):
24
+ action = self.env.ref("base.action_attachment").sudo().read()[0]
25
+ action["context"] = {
26
+ "default_res_model": self._name,
27
+ "default_res_id": self.ids[0],
28
+ }
29
+ action["domain"] = str(
30
+ [
31
+ ("document_type", "=", "payroll"),
32
+ ("res_model", "=", self._name),
33
+ ("res_id", "in", self.ids),
34
+ ]
35
+ )
36
+ return action
37
+
8
38
  def write(self, vals):
9
39
  res = super().write(vals)
10
40
  if "identification_id" in vals and not self.env["res.partner"].simple_vat_check(
@@ -10,5 +10,5 @@ class Attachment(models.Model):
10
10
  "attachment_id3",
11
11
  "document_id",
12
12
  string="Attachment",
13
- invisible=1,
14
13
  )
14
+ document_type = fields.Selection([("payroll", "Payroll")])
@@ -9,10 +9,15 @@ class IRAttachmentPayrollCustom(models.Model):
9
9
  comodel_name="ir.attachment",
10
10
  string="Attachment File",
11
11
  prefetch=False,
12
- invisible=True,
13
12
  ondelete="cascade",
14
13
  )
15
14
  employee = fields.Char()
16
15
  identification_id = fields.Char("Identification ID")
17
16
  create_date = fields.Date(default=fields.Date.context_today)
18
17
  subject = fields.Char()
18
+
19
+ def download(self):
20
+ return {
21
+ "type": "ir.actions.act_url",
22
+ "url": "web/content/" + str(self.attachment_id.id) + "/?download=True",
23
+ }
@@ -0,0 +1,20 @@
1
+ from odoo import models
2
+
3
+
4
+ class ResUsers(models.Model):
5
+ _inherit = "res.users"
6
+
7
+ def action_get_attachment_tree_view(self):
8
+ action = self.env.ref("base.action_attachment").sudo().read()[0]
9
+ action["context"] = {
10
+ "default_res_model": self._name,
11
+ "default_res_id": self.employee_id.id,
12
+ }
13
+ action["domain"] = str(
14
+ [
15
+ ("document_type", "=", "payroll"),
16
+ ("res_model", "=", self.employee_id._name),
17
+ ("res_id", "in", [self.employee_id.id]),
18
+ ]
19
+ )
20
+ return action
@@ -0,0 +1,3 @@
1
+ - [APSL-Nagarro](https://www.apsl.tech):
2
+ - Antoni Marroig \<<amarroig@apsl.net>\>
3
+ - Miquel Alzanillas \<<malzanillas@apsl.net>\>