odoo-addon-hr-appraisal-oca 16.0.1.0.0.3__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.
Files changed (37) hide show
  1. odoo/addons/hr_appraisal_oca/README.rst +218 -0
  2. odoo/addons/hr_appraisal_oca/__init__.py +2 -0
  3. odoo/addons/hr_appraisal_oca/__manifest__.py +28 -0
  4. odoo/addons/hr_appraisal_oca/data/mail_activity_type_data.xml +9 -0
  5. odoo/addons/hr_appraisal_oca/data/mail_template_data.xml +167 -0
  6. odoo/addons/hr_appraisal_oca/i18n/es.po +1201 -0
  7. odoo/addons/hr_appraisal_oca/i18n/hr_appraisal_oca.pot +1086 -0
  8. odoo/addons/hr_appraisal_oca/models/__init__.py +5 -0
  9. odoo/addons/hr_appraisal_oca/models/hr_appraisal.py +444 -0
  10. odoo/addons/hr_appraisal_oca/models/hr_appraisal_tag.py +21 -0
  11. odoo/addons/hr_appraisal_oca/models/hr_appraisal_template.py +31 -0
  12. odoo/addons/hr_appraisal_oca/models/hr_employee.py +125 -0
  13. odoo/addons/hr_appraisal_oca/models/res_config_settings.py +16 -0
  14. odoo/addons/hr_appraisal_oca/readme/CONTRIBUTORS.md +6 -0
  15. odoo/addons/hr_appraisal_oca/readme/DESCRIPTION.md +5 -0
  16. odoo/addons/hr_appraisal_oca/readme/USAGE.md +95 -0
  17. odoo/addons/hr_appraisal_oca/security/hr_appraisal_security.xml +58 -0
  18. odoo/addons/hr_appraisal_oca/security/ir.model.access.csv +10 -0
  19. odoo/addons/hr_appraisal_oca/static/description/banner.png +0 -0
  20. odoo/addons/hr_appraisal_oca/static/description/icon.png +0 -0
  21. odoo/addons/hr_appraisal_oca/static/description/index.html +535 -0
  22. odoo/addons/hr_appraisal_oca/tests/__init__.py +1 -0
  23. odoo/addons/hr_appraisal_oca/tests/test_hr_appraisal.py +120 -0
  24. odoo/addons/hr_appraisal_oca/views/hr_appraisal_form_view.xml +465 -0
  25. odoo/addons/hr_appraisal_oca/views/hr_appraisal_tag_form_view.xml +47 -0
  26. odoo/addons/hr_appraisal_oca/views/hr_appraisal_template_form_view.xml +106 -0
  27. odoo/addons/hr_appraisal_oca/views/hr_employee_form_view.xml +42 -0
  28. odoo/addons/hr_appraisal_oca/views/res_config_settings_views.xml +59 -0
  29. odoo/addons/hr_appraisal_oca/wizard/__init__.py +2 -0
  30. odoo/addons/hr_appraisal_oca/wizard/hr_appraisal_request_wizard_view.xml +40 -0
  31. odoo/addons/hr_appraisal_oca/wizard/hr_appraisal_wizard.py +159 -0
  32. odoo/addons/hr_appraisal_oca/wizard/hr_appraisal_wizard_form_view.xml +32 -0
  33. odoo/addons/hr_appraisal_oca/wizard/send_mail_with_template_wizard.py +52 -0
  34. odoo_addon_hr_appraisal_oca-16.0.1.0.0.3.dist-info/METADATA +233 -0
  35. odoo_addon_hr_appraisal_oca-16.0.1.0.0.3.dist-info/RECORD +37 -0
  36. odoo_addon_hr_appraisal_oca-16.0.1.0.0.3.dist-info/WHEEL +5 -0
  37. odoo_addon_hr_appraisal_oca-16.0.1.0.0.3.dist-info/top_level.txt +1 -0
@@ -0,0 +1,535 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
+ <meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6
+ <title>README.rst</title>
7
+ <style type="text/css">
8
+
9
+ /*
10
+ :Author: David Goodger (goodger@python.org)
11
+ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
12
+ :Copyright: This stylesheet has been placed in the public domain.
13
+
14
+ Default cascading style sheet for the HTML output of Docutils.
15
+ Despite the name, some widely supported CSS2 features are used.
16
+
17
+ See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
18
+ customize this style sheet.
19
+ */
20
+
21
+ /* used to remove borders from tables and images */
22
+ .borderless, table.borderless td, table.borderless th {
23
+ border: 0 }
24
+
25
+ table.borderless td, table.borderless th {
26
+ /* Override padding for "table.docutils td" with "! important".
27
+ The right padding separates the table cells. */
28
+ padding: 0 0.5em 0 0 ! important }
29
+
30
+ .first {
31
+ /* Override more specific margin styles with "! important". */
32
+ margin-top: 0 ! important }
33
+
34
+ .last, .with-subtitle {
35
+ margin-bottom: 0 ! important }
36
+
37
+ .hidden {
38
+ display: none }
39
+
40
+ .subscript {
41
+ vertical-align: sub;
42
+ font-size: smaller }
43
+
44
+ .superscript {
45
+ vertical-align: super;
46
+ font-size: smaller }
47
+
48
+ a.toc-backref {
49
+ text-decoration: none ;
50
+ color: black }
51
+
52
+ blockquote.epigraph {
53
+ margin: 2em 5em ; }
54
+
55
+ dl.docutils dd {
56
+ margin-bottom: 0.5em }
57
+
58
+ object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
59
+ overflow: hidden;
60
+ }
61
+
62
+ /* Uncomment (and remove this text!) to get bold-faced definition list terms
63
+ dl.docutils dt {
64
+ font-weight: bold }
65
+ */
66
+
67
+ div.abstract {
68
+ margin: 2em 5em }
69
+
70
+ div.abstract p.topic-title {
71
+ font-weight: bold ;
72
+ text-align: center }
73
+
74
+ div.admonition, div.attention, div.caution, div.danger, div.error,
75
+ div.hint, div.important, div.note, div.tip, div.warning {
76
+ margin: 2em ;
77
+ border: medium outset ;
78
+ padding: 1em }
79
+
80
+ div.admonition p.admonition-title, div.hint p.admonition-title,
81
+ div.important p.admonition-title, div.note p.admonition-title,
82
+ div.tip p.admonition-title {
83
+ font-weight: bold ;
84
+ font-family: sans-serif }
85
+
86
+ div.attention p.admonition-title, div.caution p.admonition-title,
87
+ div.danger p.admonition-title, div.error p.admonition-title,
88
+ div.warning p.admonition-title, .code .error {
89
+ color: red ;
90
+ font-weight: bold ;
91
+ font-family: sans-serif }
92
+
93
+ /* Uncomment (and remove this text!) to get reduced vertical space in
94
+ compound paragraphs.
95
+ div.compound .compound-first, div.compound .compound-middle {
96
+ margin-bottom: 0.5em }
97
+
98
+ div.compound .compound-last, div.compound .compound-middle {
99
+ margin-top: 0.5em }
100
+ */
101
+
102
+ div.dedication {
103
+ margin: 2em 5em ;
104
+ text-align: center ;
105
+ font-style: italic }
106
+
107
+ div.dedication p.topic-title {
108
+ font-weight: bold ;
109
+ font-style: normal }
110
+
111
+ div.figure {
112
+ margin-left: 2em ;
113
+ margin-right: 2em }
114
+
115
+ div.footer, div.header {
116
+ clear: both;
117
+ font-size: smaller }
118
+
119
+ div.line-block {
120
+ display: block ;
121
+ margin-top: 1em ;
122
+ margin-bottom: 1em }
123
+
124
+ div.line-block div.line-block {
125
+ margin-top: 0 ;
126
+ margin-bottom: 0 ;
127
+ margin-left: 1.5em }
128
+
129
+ div.sidebar {
130
+ margin: 0 0 0.5em 1em ;
131
+ border: medium outset ;
132
+ padding: 1em ;
133
+ background-color: #ffffee ;
134
+ width: 40% ;
135
+ float: right ;
136
+ clear: right }
137
+
138
+ div.sidebar p.rubric {
139
+ font-family: sans-serif ;
140
+ font-size: medium }
141
+
142
+ div.system-messages {
143
+ margin: 5em }
144
+
145
+ div.system-messages h1 {
146
+ color: red }
147
+
148
+ div.system-message {
149
+ border: medium outset ;
150
+ padding: 1em }
151
+
152
+ div.system-message p.system-message-title {
153
+ color: red ;
154
+ font-weight: bold }
155
+
156
+ div.topic {
157
+ margin: 2em }
158
+
159
+ h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
160
+ h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
161
+ margin-top: 0.4em }
162
+
163
+ h1.title {
164
+ text-align: center }
165
+
166
+ h2.subtitle {
167
+ text-align: center }
168
+
169
+ hr.docutils {
170
+ width: 75% }
171
+
172
+ img.align-left, .figure.align-left, object.align-left, table.align-left {
173
+ clear: left ;
174
+ float: left ;
175
+ margin-right: 1em }
176
+
177
+ img.align-right, .figure.align-right, object.align-right, table.align-right {
178
+ clear: right ;
179
+ float: right ;
180
+ margin-left: 1em }
181
+
182
+ img.align-center, .figure.align-center, object.align-center {
183
+ display: block;
184
+ margin-left: auto;
185
+ margin-right: auto;
186
+ }
187
+
188
+ table.align-center {
189
+ margin-left: auto;
190
+ margin-right: auto;
191
+ }
192
+
193
+ .align-left {
194
+ text-align: left }
195
+
196
+ .align-center {
197
+ clear: both ;
198
+ text-align: center }
199
+
200
+ .align-right {
201
+ text-align: right }
202
+
203
+ /* reset inner alignment in figures */
204
+ div.align-right {
205
+ text-align: inherit }
206
+
207
+ /* div.align-center * { */
208
+ /* text-align: left } */
209
+
210
+ .align-top {
211
+ vertical-align: top }
212
+
213
+ .align-middle {
214
+ vertical-align: middle }
215
+
216
+ .align-bottom {
217
+ vertical-align: bottom }
218
+
219
+ ol.simple, ul.simple {
220
+ margin-bottom: 1em }
221
+
222
+ ol.arabic {
223
+ list-style: decimal }
224
+
225
+ ol.loweralpha {
226
+ list-style: lower-alpha }
227
+
228
+ ol.upperalpha {
229
+ list-style: upper-alpha }
230
+
231
+ ol.lowerroman {
232
+ list-style: lower-roman }
233
+
234
+ ol.upperroman {
235
+ list-style: upper-roman }
236
+
237
+ p.attribution {
238
+ text-align: right ;
239
+ margin-left: 50% }
240
+
241
+ p.caption {
242
+ font-style: italic }
243
+
244
+ p.credits {
245
+ font-style: italic ;
246
+ font-size: smaller }
247
+
248
+ p.label {
249
+ white-space: nowrap }
250
+
251
+ p.rubric {
252
+ font-weight: bold ;
253
+ font-size: larger ;
254
+ color: maroon ;
255
+ text-align: center }
256
+
257
+ p.sidebar-title {
258
+ font-family: sans-serif ;
259
+ font-weight: bold ;
260
+ font-size: larger }
261
+
262
+ p.sidebar-subtitle {
263
+ font-family: sans-serif ;
264
+ font-weight: bold }
265
+
266
+ p.topic-title {
267
+ font-weight: bold }
268
+
269
+ pre.address {
270
+ margin-bottom: 0 ;
271
+ margin-top: 0 ;
272
+ font: inherit }
273
+
274
+ pre.literal-block, pre.doctest-block, pre.math, pre.code {
275
+ margin-left: 2em ;
276
+ margin-right: 2em }
277
+
278
+ pre.code .ln { color: gray; } /* line numbers */
279
+ pre.code, code { background-color: #eeeeee }
280
+ pre.code .comment, code .comment { color: #5C6576 }
281
+ pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
282
+ pre.code .literal.string, code .literal.string { color: #0C5404 }
283
+ pre.code .name.builtin, code .name.builtin { color: #352B84 }
284
+ pre.code .deleted, code .deleted { background-color: #DEB0A1}
285
+ pre.code .inserted, code .inserted { background-color: #A3D289}
286
+
287
+ span.classifier {
288
+ font-family: sans-serif ;
289
+ font-style: oblique }
290
+
291
+ span.classifier-delimiter {
292
+ font-family: sans-serif ;
293
+ font-weight: bold }
294
+
295
+ span.interpreted {
296
+ font-family: sans-serif }
297
+
298
+ span.option {
299
+ white-space: nowrap }
300
+
301
+ span.pre {
302
+ white-space: pre }
303
+
304
+ span.problematic, pre.problematic {
305
+ color: red }
306
+
307
+ span.section-subtitle {
308
+ /* font-size relative to parent (h1..h6 element) */
309
+ font-size: 80% }
310
+
311
+ table.citation {
312
+ border-left: solid 1px gray;
313
+ margin-left: 1px }
314
+
315
+ table.docinfo {
316
+ margin: 2em 4em }
317
+
318
+ table.docutils {
319
+ margin-top: 0.5em ;
320
+ margin-bottom: 0.5em }
321
+
322
+ table.footnote {
323
+ border-left: solid 1px black;
324
+ margin-left: 1px }
325
+
326
+ table.docutils td, table.docutils th,
327
+ table.docinfo td, table.docinfo th {
328
+ padding-left: 0.5em ;
329
+ padding-right: 0.5em ;
330
+ vertical-align: top }
331
+
332
+ table.docutils th.field-name, table.docinfo th.docinfo-name {
333
+ font-weight: bold ;
334
+ text-align: left ;
335
+ white-space: nowrap ;
336
+ padding-left: 0 }
337
+
338
+ /* "booktabs" style (no vertical lines) */
339
+ table.docutils.booktabs {
340
+ border: 0px;
341
+ border-top: 2px solid;
342
+ border-bottom: 2px solid;
343
+ border-collapse: collapse;
344
+ }
345
+ table.docutils.booktabs * {
346
+ border: 0px;
347
+ }
348
+ table.docutils.booktabs th {
349
+ border-bottom: thin solid;
350
+ text-align: left;
351
+ }
352
+
353
+ h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
354
+ h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
355
+ font-size: 100% }
356
+
357
+ ul.auto-toc {
358
+ list-style-type: none }
359
+
360
+ </style>
361
+ </head>
362
+ <body>
363
+ <div class="document">
364
+
365
+
366
+ <a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367
+ <img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368
+ </a>
369
+ <div class="section" id="appraisal-oca">
370
+ <h1>Appraisal Oca</h1>
371
+ <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372
+ !! This file is generated by oca-gen-addon-readme !!
373
+ !! changes will be overwritten. !!
374
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375
+ !! source digest: sha256:d1946002660b919f664e9679611e20cec90d54dcf506f5ee30a69d6bb3ac031d
376
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377
+ <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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/hr/tree/16.0/hr_appraisal_oca"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_appraisal_oca"><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/hr&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378
+ <p>This module helps maintain the employee motivation process through
379
+ periodic performance appraisals.</p>
380
+ <p>Managers can evaluate employee performance and enable employees to
381
+ perform self-assessments. Review forms can be customized according to
382
+ organizational needs.</p>
383
+ <p><strong>Table of contents</strong></p>
384
+ <div class="contents local topic" id="contents">
385
+ <ul class="simple">
386
+ <li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
387
+ <li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
388
+ <li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
389
+ <li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
390
+ <li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
391
+ <li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
392
+ </ul>
393
+ </li>
394
+ </ul>
395
+ </div>
396
+ <div class="section" id="usage">
397
+ <h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
398
+ <p>To create a new appraisal for an employee, first navigate to the main
399
+ Appraisals dashboard by opening the Appraisals app. The Appraisals
400
+ dashboard is the default view.</p>
401
+ <p>All appraisals are displayed on the dashboard in a default Kanban view.
402
+ To view the details of any appraisal, click on the card to open the
403
+ appraisal form.</p>
404
+ <p>1. Create an appraisal: To create a new appraisal, click the New button
405
+ in the upper-left corner of the Appraisals dashboard. Doing so reveals a
406
+ blank appraisal form. After entering a name in the first blank field,
407
+ proceed to enter the following information on the form: * Employee:
408
+ Select the employee for whom you are creating the appraisal. *
409
+ Managers: Select the managers who will be involved in the appraisal
410
+ process. * Date Close: Select the date when the appraisal is expected
411
+ to be completed. * Appraisal Template: Select the template that will be
412
+ used for this appraisal. * Appraisal Tags: Add any relevant tags to
413
+ categorize the appraisal.</p>
414
+ <p>Once the form is complete, click the Confirm button to confirm the
415
+ appraisal request.</p>
416
+ <p>Once confirmed, the employee receives an email stating that an appraisal
417
+ was requested, and is then prompted to schedule an appraisal date. The
418
+ next steps require the employee to fill out the self-assessment, after
419
+ which the manager completes their assessment.</p>
420
+ <p>The status changes to Confirmed, and the Employee’s Feedback section of
421
+ the Appraisal tab is grayed out. The information in that section only
422
+ appears after the self-assessment is published by the employee.</p>
423
+ <p>If there are any existing appraisals for the employee, an Appraisal
424
+ smart button appears at the top of the page, listing the total number of
425
+ appraisals there are for the employee.</p>
426
+ <p>2. Employee’s feedback To complete their portion of feedback, employees
427
+ should navigate to the main Appraisals application dashboard, where the
428
+ only entries visible are appraisals for the employee, themselves, and/or
429
+ anyone they manage and have to provide manager feedback for.</p>
430
+ <p>Click on the appraisal to open the appraisal form. Enter responses in
431
+ the Employee’s Feedback section, under the Appraisal tab.</p>
432
+ <p>When completed, click the Not Visible to Manager toggle (the default
433
+ setting once an appraisal is confirmed). When clicked, the toggle
434
+ changes to Visible to Manager.</p>
435
+ <p>3. Manager’s feedback After the employee has completed the Employee’s
436
+ Feedback section, under the Appraisal tab, it is time for the manager to
437
+ fill out the Manager’s Feedback section.</p>
438
+ <p>The manager enters their responses in the fields in the same manner as
439
+ the employee.</p>
440
+ <p>When the feedback section is completed, click the Not Visible to
441
+ Employee toggle (the default setting once an appraisal is confirmed).
442
+ When clicked, the toggle changes to Visible to Employee.</p>
443
+ <p>4. Private Note tab If managers want to leave notes that are only
444
+ visible to other managers, they can be entered in the Private Note tab.
445
+ This can be done before or after meeting with the employee to discuss
446
+ the appraisal.</p>
447
+ <p>The employee being evaluated does not have access to this tab, and the
448
+ tab does not appear on their appraisal.</p>
449
+ <p>5. Complete an appraisal After the appraisal is complete, and both the
450
+ manager and employee have met to discuss the appraisal, the appraisal
451
+ can be marked as Done. When completed, click the Mark as Done button on
452
+ the appraisal form, located in the top-left corner.</p>
453
+ <p>Once the appraisal is marked as Done, the Mark as Done button
454
+ disappears, and a Reopen button appears.</p>
455
+ <p>6. Permissions and User Types To manage access permissions to the
456
+ Appraisals app, go to Settings &gt; Users &amp; Companies &gt; Users and select
457
+ the desired user. In the Access tab, you will find the Appraisal
458
+ Permissions section. The following user types are available:</p>
459
+ <ul class="simple">
460
+ <li>User: Can access their own appraisals and complete evaluations of
461
+ their direct and indirect reporting employees.</li>
462
+ <li>Human resources officer: Has full access to all appraisals and
463
+ settings, and can manage templates, tags, permissions, and all
464
+ records.</li>
465
+ </ul>
466
+ <p>Make sure to assign the appropriate access type based on the user’s role
467
+ in the organization. Permissions determine what actions each user can
468
+ perform within the Appraisals module.</p>
469
+ <p>7. Archive and Restore Appraisals To archive an appraisal, open the
470
+ record and select Archive from the Action menu. Archived appraisals are
471
+ hidden from the main views.</p>
472
+ <p>To view archived appraisals, use the Archived filter in the search bar.</p>
473
+ <p>To restore an appraisal, open it (with the Archived filter active) and
474
+ click Restore.</p>
475
+ <p>Archiving does not delete the record; you can archive or restore
476
+ appraisals at any time.</p>
477
+ <ul class="simple">
478
+ <li>Tip</li>
479
+ </ul>
480
+ <p>Modifications are not possible once the appraisal is marked as done.</p>
481
+ <p>To make any changes to an appraisal that is marked as Done, click the
482
+ Reopen button.</p>
483
+ <p>Then, click the Confirm button that appears, and make any modifications
484
+ needed. Once all modifications are complete, click the Mark as Done
485
+ button again.</p>
486
+ </div>
487
+ <div class="section" id="bug-tracker">
488
+ <h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
489
+ <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr/issues">GitHub Issues</a>.
490
+ In case of trouble, please check there if your issue has already been reported.
491
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
492
+ <a class="reference external" href="https://github.com/OCA/hr/issues/new?body=module:%20hr_appraisal_oca%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
493
+ <p>Do not contact contributors directly about support or help with technical issues.</p>
494
+ </div>
495
+ <div class="section" id="credits">
496
+ <h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
497
+ <div class="section" id="authors">
498
+ <h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
499
+ <ul class="simple">
500
+ <li>Fundación Esment</li>
501
+ </ul>
502
+ </div>
503
+ <div class="section" id="contributors">
504
+ <h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
505
+ <ul class="simple">
506
+ <li><a class="reference external" href="https://esment.org/">Fundación Esment</a>:<ul>
507
+ <li>Estefanía Bauzá</li>
508
+ </ul>
509
+ </li>
510
+ <li><a class="reference external" href="https://www.tecnativa.com/">Tecnativa</a>:<ul>
511
+ <li>Pedro M. Baeza</li>
512
+ <li>Christian Ramos</li>
513
+ </ul>
514
+ </li>
515
+ </ul>
516
+ </div>
517
+ <div class="section" id="maintainers">
518
+ <h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
519
+ <p>This module is maintained by the OCA.</p>
520
+ <a class="reference external image-reference" href="https://odoo-community.org">
521
+ <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
522
+ </a>
523
+ <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
524
+ mission is to support the collaborative development of Odoo features and
525
+ promote its widespread use.</p>
526
+ <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
527
+ <p><a class="reference external image-reference" href="https://github.com/ebauza"><img alt="ebauza" src="https://github.com/ebauza.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/pedrobaeza"><img alt="pedrobaeza" src="https://github.com/pedrobaeza.png?size=40px" /></a></p>
528
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/16.0/hr_appraisal_oca">OCA/hr</a> project on GitHub.</p>
529
+ <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>
530
+ </div>
531
+ </div>
532
+ </div>
533
+ </div>
534
+ </body>
535
+ </html>
@@ -0,0 +1 @@
1
+ from . import test_hr_appraisal
@@ -0,0 +1,120 @@
1
+ # Copyright 2025 Fundación Esment - Estefanía Bauzá Illán
2
+ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3
+
4
+ from markupsafe import Markup
5
+
6
+ from odoo.tests import new_test_user
7
+
8
+ from odoo.addons.base.tests.common import BaseCommon
9
+
10
+
11
+ class TestHrAppraisalEmployee(BaseCommon):
12
+ @classmethod
13
+ def setUpClass(cls):
14
+ super().setUpClass()
15
+ cls.Employee = cls.env["hr.employee"]
16
+ cls.User = cls.env["res.users"]
17
+ cls.Template = cls.env["hr.appraisal.template"]
18
+ cls.Tag = cls.env["hr.appraisal.tag"]
19
+ cls.Appraisal = cls.env["hr.appraisal"]
20
+ cls.user_manager = new_test_user(
21
+ cls.env,
22
+ login="manager@example.com",
23
+ email="manager@example.com",
24
+ )
25
+ cls.employee_user = cls.User.create(
26
+ {
27
+ "name": "Employee User",
28
+ "login": "employee@example.com",
29
+ "email": "employee@example.com",
30
+ }
31
+ )
32
+ cls.department_1 = cls.env["hr.department"].create({"name": "Department 1"})
33
+ cls.manager = cls.Employee.create(
34
+ {
35
+ "name": "Manager",
36
+ "user_id": cls.user_manager.id,
37
+ "work_email": "manager@example.com",
38
+ "department_id": cls.department_1.id,
39
+ }
40
+ )
41
+ cls.employee = cls.Employee.create(
42
+ {
43
+ "name": "Employee",
44
+ "user_id": cls.employee_user.id,
45
+ "parent_id": cls.manager.id,
46
+ "work_email": "employee@example.com",
47
+ "department_id": cls.department_1.id,
48
+ }
49
+ )
50
+ cls.template = cls.Template.create(
51
+ {
52
+ "description": "Default Template",
53
+ "appraisal_employee_feedback_template": "<p>Feedback</p>",
54
+ "appraisal_manager_feedback_template": "<p>Manager Feedback</p>",
55
+ }
56
+ )
57
+ cls.env["ir.config_parameter"].sudo().set_param(
58
+ "hr_appraisal_oca.default_appraisal_template_id", cls.template.id
59
+ )
60
+ cls.tag = cls.Tag.create(
61
+ {
62
+ "name": "Performance",
63
+ "color": 1,
64
+ }
65
+ )
66
+ cls.appraisal = cls.Appraisal.create(
67
+ {
68
+ "employee_id": cls.employee.id,
69
+ "manager_ids": [(6, 0, [cls.manager.id])],
70
+ "date_close": "2025-12-31",
71
+ "state": "1_new",
72
+ "tag_ids": [(6, 0, [cls.tag.id])],
73
+ }
74
+ )
75
+
76
+ def test_appraisal_creation(self):
77
+ self.assertEqual(self.appraisal.state, "1_new")
78
+ self.assertEqual(self.appraisal.employee_id, self.employee)
79
+ self.assertIn(self.manager, self.appraisal.manager_ids)
80
+ self.assertEqual(self.appraisal.appraisal_template_id, self.template)
81
+ self.assertIn(self.tag, self.appraisal.tag_ids)
82
+
83
+ def test_action_confirm(self):
84
+ appraisal = self.appraisal.with_user(self.user_manager)
85
+ appraisal.action_confirm()
86
+ self.assertEqual(appraisal.state, "2_pending")
87
+ self.assertFalse(appraisal.employee_feedback_published)
88
+ self.assertFalse(appraisal.manager_feedback_published)
89
+ self.assertEqual(len(appraisal.activity_ids), 2)
90
+
91
+ def test_action_done(self):
92
+ appraisal = self.appraisal.with_user(self.user_manager)
93
+ appraisal.action_confirm()
94
+ appraisal.action_done()
95
+ self.assertEqual(appraisal.state, "3_done")
96
+ self.assertTrue(appraisal.employee_feedback_published)
97
+ self.assertTrue(appraisal.manager_feedback_published)
98
+
99
+ def test_publish_employee_feedback_toggle(self):
100
+ appraisal = self.appraisal.with_user(self.user_manager)
101
+ published = appraisal.employee_feedback_published
102
+ appraisal.action_publish_employee_feedback()
103
+ self.assertNotEqual(appraisal.employee_feedback_published, published)
104
+
105
+ def test_publish_manager_feedback_toggle(self):
106
+ appraisal = self.appraisal.with_user(self.user_manager)
107
+ published = appraisal.manager_feedback_published
108
+ appraisal.action_publish_manager_feedback()
109
+ self.assertNotEqual(appraisal.manager_feedback_published, published)
110
+
111
+ def test_default_template_assigned(self):
112
+ self.assertEqual(self.appraisal.appraisal_template_id, self.template)
113
+ self.assertEqual(
114
+ self.appraisal.employee_feedback,
115
+ Markup(self.template.appraisal_employee_feedback_template),
116
+ )
117
+ self.assertEqual(
118
+ self.appraisal.manager_feedback,
119
+ Markup(self.template.appraisal_manager_feedback_template),
120
+ )