odoo-addon-hr-appraisal-oca 16.0.1.0.0.4__py3-none-any.whl → 18.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.
- odoo/addons/hr_appraisal_oca/README.rst +6 -6
- odoo/addons/hr_appraisal_oca/__manifest__.py +2 -2
- odoo/addons/hr_appraisal_oca/data/mail_activity_type_data.xml +6 -6
- odoo/addons/hr_appraisal_oca/data/mail_template_data.xml +70 -70
- odoo/addons/hr_appraisal_oca/i18n/hr_appraisal_oca.pot +60 -90
- odoo/addons/hr_appraisal_oca/models/__init__.py +0 -1
- odoo/addons/hr_appraisal_oca/models/hr_appraisal.py +1 -2
- odoo/addons/hr_appraisal_oca/models/hr_employee.py +1 -1
- odoo/addons/hr_appraisal_oca/security/hr_appraisal_security.xml +2 -1
- odoo/addons/hr_appraisal_oca/security/ir.model.access.csv +4 -4
- odoo/addons/hr_appraisal_oca/static/description/index.html +4 -4
- odoo/addons/hr_appraisal_oca/views/hr_appraisal_form_view.xml +91 -95
- odoo/addons/hr_appraisal_oca/views/hr_appraisal_tag_form_view.xml +5 -5
- odoo/addons/hr_appraisal_oca/views/hr_appraisal_template_form_view.xml +4 -4
- odoo/addons/hr_appraisal_oca/views/hr_employee_form_view.xml +3 -3
- odoo/addons/hr_appraisal_oca/wizard/__init__.py +1 -0
- odoo/addons/hr_appraisal_oca/{views → wizard}/res_config_settings_views.xml +10 -24
- odoo/addons/hr_appraisal_oca/wizard/send_mail_with_template_wizard.py +2 -6
- {odoo_addon_hr_appraisal_oca-16.0.1.0.0.4.dist-info → odoo_addon_hr_appraisal_oca-18.0.1.0.0.2.dist-info}/METADATA +13 -12
- {odoo_addon_hr_appraisal_oca-16.0.1.0.0.4.dist-info → odoo_addon_hr_appraisal_oca-18.0.1.0.0.2.dist-info}/RECORD +23 -23
- {odoo_addon_hr_appraisal_oca-16.0.1.0.0.4.dist-info → odoo_addon_hr_appraisal_oca-18.0.1.0.0.2.dist-info}/WHEEL +1 -1
- odoo_addon_hr_appraisal_oca-18.0.1.0.0.2.dist-info/top_level.txt +1 -0
- odoo_addon_hr_appraisal_oca-16.0.1.0.0.4.dist-info/top_level.txt +0 -1
- /odoo/addons/hr_appraisal_oca/{models → wizard}/res_config_settings.py +0 -0
|
@@ -11,7 +11,7 @@ Appraisal Oca
|
|
|
11
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
12
12
|
!! changes will be overwritten. !!
|
|
13
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:a0020854a21ae0eb8d4d5ab499cf831f0aa0f7c54160f7f7c12e33b279930ae9
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -21,13 +21,13 @@ Appraisal Oca
|
|
|
21
21
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
22
22
|
:alt: License: AGPL-3
|
|
23
23
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github
|
|
24
|
-
:target: https://github.com/OCA/hr/tree/
|
|
24
|
+
:target: https://github.com/OCA/hr/tree/18.0/hr_appraisal_oca
|
|
25
25
|
:alt: OCA/hr
|
|
26
26
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
27
|
-
:target: https://translation.odoo-community.org/projects/hr-
|
|
27
|
+
:target: https://translation.odoo-community.org/projects/hr-18-0/hr-18-0-hr_appraisal_oca
|
|
28
28
|
:alt: Translate me on Weblate
|
|
29
29
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
30
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=
|
|
30
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/hr&target_branch=18.0
|
|
31
31
|
:alt: Try me on Runboat
|
|
32
32
|
|
|
33
33
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
@@ -165,7 +165,7 @@ Bug Tracker
|
|
|
165
165
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/hr/issues>`_.
|
|
166
166
|
In case of trouble, please check there if your issue has already been reported.
|
|
167
167
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
168
|
-
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_appraisal_oca%0Aversion:%
|
|
168
|
+
`feedback <https://github.com/OCA/hr/issues/new?body=module:%20hr_appraisal_oca%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
169
169
|
|
|
170
170
|
Do not contact contributors directly about support or help with technical issues.
|
|
171
171
|
|
|
@@ -213,6 +213,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|
|
|
213
213
|
|
|
214
214
|
|maintainer-ebauza| |maintainer-pedrobaeza|
|
|
215
215
|
|
|
216
|
-
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/
|
|
216
|
+
This module is part of the `OCA/hr <https://github.com/OCA/hr/tree/18.0/hr_appraisal_oca>`_ project on GitHub.
|
|
217
217
|
|
|
218
218
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
3
3
|
{
|
|
4
4
|
"name": "Appraisal Oca",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "18.0.1.0.0",
|
|
6
6
|
"category": "Human Resources/Employees",
|
|
7
7
|
"website": "https://github.com/OCA/hr",
|
|
8
8
|
"author": "Fundación Esment, Odoo Community Association (OCA)",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"data/mail_template_data.xml",
|
|
19
19
|
"data/mail_activity_type_data.xml",
|
|
20
20
|
"views/hr_appraisal_form_view.xml",
|
|
21
|
-
"views/res_config_settings_views.xml",
|
|
22
21
|
"views/hr_employee_form_view.xml",
|
|
23
22
|
"views/hr_appraisal_template_form_view.xml",
|
|
24
23
|
"views/hr_appraisal_tag_form_view.xml",
|
|
25
24
|
"wizard/hr_appraisal_wizard_form_view.xml",
|
|
26
25
|
"wizard/hr_appraisal_request_wizard_view.xml",
|
|
26
|
+
"wizard/res_config_settings_views.xml",
|
|
27
27
|
],
|
|
28
28
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
2
|
<odoo noupdate="1">
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
<record id="mail_act_hr_appraisal_cfr" model="mail.activity.type">
|
|
4
|
+
<field name="name">CFR</field>
|
|
5
|
+
<field name="icon">fa-comments-o</field>
|
|
6
|
+
<field name="summary">Appraisals</field>
|
|
7
|
+
<field name="res_model">hr.appraisal</field>
|
|
8
|
+
</record>
|
|
9
9
|
</odoo>
|
|
@@ -18,36 +18,36 @@
|
|
|
18
18
|
<t t-out="object.employee_id.name or ''" />,
|
|
19
19
|
</t>
|
|
20
20
|
<t t-foreach="object.manager_ids" t-as="manager">
|
|
21
|
-
|
|
21
|
+
<t t-if="user.id not in object.manager_user_ids.ids">
|
|
22
22
|
<t t-out="manager.name or ''" />,
|
|
23
23
|
</t>
|
|
24
|
-
|
|
24
|
+
</t>
|
|
25
25
|
<br />
|
|
26
26
|
An appraisal has been requested by <t
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
t-out="user.name or ''"
|
|
28
|
+
/>.<br />
|
|
29
29
|
<br />
|
|
30
30
|
<t t-if="ctx.get('user_body')">
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
<div
|
|
32
|
+
style="margin: 16px 0px 16px 0px; padding: 8px 16px 8px 16px; background-color: #F1F1F1;"
|
|
33
|
+
>
|
|
34
|
+
<t t-out="ctx.get('user_body')" />
|
|
35
|
+
</div>
|
|
36
|
+
</t>
|
|
37
37
|
<t t-if="ctx.get('recipient_users')">
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
<p
|
|
39
|
+
style="margin: 16px 0px 16px 0px; padding: 8px 16px 8px 16px; text-align: center;"
|
|
40
|
+
>
|
|
41
|
+
<t
|
|
42
|
+
t-set="link"
|
|
43
|
+
t-value="'/mail/view?model=hr.appraisal&res_id=%s' % object.id"
|
|
44
|
+
/>
|
|
45
|
+
<a
|
|
46
|
+
style="margin: auto; background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;"
|
|
47
|
+
t-att-href="link"
|
|
48
|
+
>View Appraisal</a>
|
|
49
|
+
</p>
|
|
50
|
+
</t>
|
|
51
51
|
<br />
|
|
52
52
|
</p>
|
|
53
53
|
</div>
|
|
@@ -68,34 +68,34 @@
|
|
|
68
68
|
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
|
69
69
|
Dear
|
|
70
70
|
<t t-foreach="object.manager_ids" t-as="manager">
|
|
71
|
-
|
|
71
|
+
<t t-if="manager.work_email">
|
|
72
72
|
<t t-out="manager.name or ''" />,
|
|
73
73
|
</t>
|
|
74
|
-
|
|
74
|
+
</t>
|
|
75
75
|
<br />
|
|
76
76
|
<t t-out="user.name or ''" /> wishes an appraisal.<br />
|
|
77
77
|
<br />
|
|
78
78
|
<t t-if="ctx.get('user_body')">
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
<div
|
|
80
|
+
style="margin: 16px 0px 16px 0px; padding: 8px 16px 8px 16px; background-color: #F1F1F1;"
|
|
81
|
+
>
|
|
82
|
+
<t t-out="ctx.get('user_body')" />
|
|
83
|
+
</div>
|
|
84
|
+
</t>
|
|
85
85
|
<t t-if="ctx.get('recipient_users')">
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
86
|
+
<p
|
|
87
|
+
style="margin: 16px 0px 16px 0px; padding: 8px 16px 8px 16px; text-align: center;"
|
|
88
|
+
>
|
|
89
|
+
<t
|
|
90
|
+
t-set="link"
|
|
91
|
+
t-value="'/mail/view?model=hr.appraisal&res_id=%s' % object.id"
|
|
92
|
+
/>
|
|
93
|
+
<a
|
|
94
|
+
style="margin: auto; background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;"
|
|
95
|
+
t-att-href="link"
|
|
96
|
+
>View Appraisal</a>
|
|
97
|
+
</p>
|
|
98
|
+
</t>
|
|
99
99
|
</p>
|
|
100
100
|
</div>
|
|
101
101
|
</field>
|
|
@@ -113,23 +113,23 @@
|
|
|
113
113
|
<div style="margin: 0px; padding: 0px;">
|
|
114
114
|
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
|
115
115
|
An appraisal of <t
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
t-out="object.employee_id.name or 'employee'"
|
|
117
|
+
/> has been confirmed.<br />
|
|
118
118
|
<br /><br />
|
|
119
119
|
Please schedule an appraisal date together.
|
|
120
120
|
<br /><br />
|
|
121
121
|
<t t-if="ctx.get('recipient_users')">
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
122
|
+
<p style="margin: 16px 0px 16px 0px; text-align: center;">
|
|
123
|
+
<t
|
|
124
|
+
t-set="link"
|
|
125
|
+
t-value="'/mail/view?model=hr.appraisal&res_id=%s' % object.id"
|
|
126
|
+
/>
|
|
127
|
+
<a
|
|
128
|
+
style="background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;"
|
|
129
|
+
t-att-href="link"
|
|
130
|
+
>View Appraisal</a>
|
|
131
|
+
</p>
|
|
132
|
+
</t>
|
|
133
133
|
</p>
|
|
134
134
|
</div>
|
|
135
135
|
</field>
|
|
@@ -146,21 +146,21 @@
|
|
|
146
146
|
<field name="body_html" type="html">
|
|
147
147
|
<div>
|
|
148
148
|
The appraisal's status has been set to <strong
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
style="box-sizing:border-box;font-weight:bold;"
|
|
150
|
+
>Done</strong> by <t t-out="user.name or ''" />.<br />
|
|
151
151
|
<br />
|
|
152
152
|
<t t-if="ctx.get('recipient_users')">
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
<p style="box-sizing:border-box;margin-top:24px;margin-bottom:16px">
|
|
154
|
+
<t
|
|
155
|
+
t-set="link"
|
|
156
|
+
t-value="'/mail/view?model=hr.appraisal&res_id=%s' % object.id"
|
|
157
|
+
/>
|
|
158
|
+
<a
|
|
159
|
+
style="box-sizing:border-box;text-decoration:none;color:#7c7bad;background-color:#875A7B;padding:10px; color:#fff; border-radius:5px;"
|
|
160
|
+
t-att-href="link"
|
|
161
|
+
>View Employee Appraisal</a>
|
|
162
|
+
</p>
|
|
163
|
+
</t>
|
|
164
164
|
</div>
|
|
165
165
|
</field>
|
|
166
166
|
</record>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
msgid ""
|
|
6
6
|
msgstr ""
|
|
7
|
-
"Project-Id-Version: Odoo Server
|
|
7
|
+
"Project-Id-Version: Odoo Server 18.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
9
|
"Last-Translator: \n"
|
|
10
10
|
"Language-Team: \n"
|
|
@@ -18,16 +18,16 @@ msgstr ""
|
|
|
18
18
|
msgid ""
|
|
19
19
|
"<div style=\"margin: 0px; padding: 0px;\">\n"
|
|
20
20
|
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n"
|
|
21
|
-
" An appraisal of <t t-out=\"object.employee_id.name or 'employee'\"
|
|
22
|
-
" <br
|
|
21
|
+
" An appraisal of <t t-out=\"object.employee_id.name or 'employee'\"/> has been confirmed.<br/>\n"
|
|
22
|
+
" <br/><br/>\n"
|
|
23
23
|
" Please schedule an appraisal date together.\n"
|
|
24
|
-
" <br
|
|
24
|
+
" <br/><br/>\n"
|
|
25
25
|
" <t t-if=\"ctx.get('recipient_users')\">\n"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
26
|
+
" <p style=\"margin: 16px 0px 16px 0px; text-align: center;\">\n"
|
|
27
|
+
" <t t-set=\"link\" t-value=\"'/mail/view?model=hr.appraisal&res_id=%s' % object.id\"/>\n"
|
|
28
|
+
" <a style=\"background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;\" t-att-href=\"link\">View Appraisal</a>\n"
|
|
29
|
+
" </p>\n"
|
|
30
|
+
" </t>\n"
|
|
31
31
|
" </p>\n"
|
|
32
32
|
" </div>\n"
|
|
33
33
|
" "
|
|
@@ -40,24 +40,24 @@ msgid ""
|
|
|
40
40
|
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n"
|
|
41
41
|
" Dear\n"
|
|
42
42
|
" <t t-foreach=\"object.manager_ids\" t-as=\"manager\">\n"
|
|
43
|
-
"
|
|
44
|
-
" <t t-out=\"manager.name or ''\"
|
|
43
|
+
" <t t-if=\"manager.work_email\">\n"
|
|
44
|
+
" <t t-out=\"manager.name or ''\"/>,\n"
|
|
45
45
|
" </t>\n"
|
|
46
|
-
"
|
|
47
|
-
" <br
|
|
48
|
-
" <t t-out=\"user.name or ''\"
|
|
49
|
-
" <br
|
|
46
|
+
" </t>\n"
|
|
47
|
+
" <br/>\n"
|
|
48
|
+
" <t t-out=\"user.name or ''\"/> wishes an appraisal.<br/>\n"
|
|
49
|
+
" <br/>\n"
|
|
50
50
|
" <t t-if=\"ctx.get('user_body')\">\n"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
51
|
+
" <div style=\"margin: 16px 0px 16px 0px; padding: 8px 16px 8px 16px; background-color: #F1F1F1;\">\n"
|
|
52
|
+
" <t t-out=\"ctx.get('user_body')\"/>\n"
|
|
53
|
+
" </div>\n"
|
|
54
|
+
" </t>\n"
|
|
55
55
|
" <t t-if=\"ctx.get('recipient_users')\">\n"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
56
|
+
" <p style=\"margin: 16px 0px 16px 0px; padding: 8px 16px 8px 16px; text-align: center;\">\n"
|
|
57
|
+
" <t t-set=\"link\" t-value=\"'/mail/view?model=hr.appraisal&res_id=%s' % object.id\"/>\n"
|
|
58
|
+
" <a style=\"margin: auto; background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;\" t-att-href=\"link\">View Appraisal</a>\n"
|
|
59
|
+
" </p>\n"
|
|
60
|
+
" </t>\n"
|
|
61
61
|
" </p>\n"
|
|
62
62
|
" </div>\n"
|
|
63
63
|
" "
|
|
@@ -70,28 +70,28 @@ msgid ""
|
|
|
70
70
|
" <p style=\"margin: 0px; padding: 0px; font-size: 13px;\">\n"
|
|
71
71
|
" Dear\n"
|
|
72
72
|
" <t t-if=\"object.employee_id.work_email\">\n"
|
|
73
|
-
" <t t-out=\"object.employee_id.name or ''\"
|
|
73
|
+
" <t t-out=\"object.employee_id.name or ''\"/>,\n"
|
|
74
74
|
" </t>\n"
|
|
75
75
|
" <t t-foreach=\"object.manager_ids\" t-as=\"manager\">\n"
|
|
76
|
-
"
|
|
77
|
-
" <t t-out=\"manager.name or ''\"
|
|
76
|
+
" <t t-if=\"user.id not in object.manager_user_ids.ids\">\n"
|
|
77
|
+
" <t t-out=\"manager.name or ''\"/>,\n"
|
|
78
78
|
" </t>\n"
|
|
79
|
-
"
|
|
80
|
-
" <br
|
|
81
|
-
" An appraisal has been requested by <t t-out=\"user.name or ''\"
|
|
82
|
-
" <br
|
|
79
|
+
" </t>\n"
|
|
80
|
+
" <br/>\n"
|
|
81
|
+
" An appraisal has been requested by <t t-out=\"user.name or ''\"/>.<br/>\n"
|
|
82
|
+
" <br/>\n"
|
|
83
83
|
" <t t-if=\"ctx.get('user_body')\">\n"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
84
|
+
" <div style=\"margin: 16px 0px 16px 0px; padding: 8px 16px 8px 16px; background-color: #F1F1F1;\">\n"
|
|
85
|
+
" <t t-out=\"ctx.get('user_body')\"/>\n"
|
|
86
|
+
" </div>\n"
|
|
87
|
+
" </t>\n"
|
|
88
88
|
" <t t-if=\"ctx.get('recipient_users')\">\n"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
" <br
|
|
89
|
+
" <p style=\"margin: 16px 0px 16px 0px; padding: 8px 16px 8px 16px; text-align: center;\">\n"
|
|
90
|
+
" <t t-set=\"link\" t-value=\"'/mail/view?model=hr.appraisal&res_id=%s' % object.id\"/>\n"
|
|
91
|
+
" <a style=\"margin: auto; background-color:#875A7B; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px;\" t-att-href=\"link\">View Appraisal</a>\n"
|
|
92
|
+
" </p>\n"
|
|
93
|
+
" </t>\n"
|
|
94
|
+
" <br/>\n"
|
|
95
95
|
" </p>\n"
|
|
96
96
|
" </div>\n"
|
|
97
97
|
" "
|
|
@@ -101,14 +101,14 @@ msgstr ""
|
|
|
101
101
|
#: model:mail.template,body_html:hr_appraisal_oca.mail_template_appraisal_completed
|
|
102
102
|
msgid ""
|
|
103
103
|
"<div>\n"
|
|
104
|
-
" The appraisal's status has been set to <strong style=\"box-sizing:border-box;font-weight:bold;\">Done</strong> by <t t-out=\"user.name or ''\"
|
|
105
|
-
" <br
|
|
104
|
+
" The appraisal's status has been set to <strong style=\"box-sizing:border-box;font-weight:bold;\">Done</strong> by <t t-out=\"user.name or ''\"/>.<br/>\n"
|
|
105
|
+
" <br/>\n"
|
|
106
106
|
" <t t-if=\"ctx.get('recipient_users')\">\n"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
107
|
+
" <p style=\"box-sizing:border-box;margin-top:24px;margin-bottom:16px\">\n"
|
|
108
|
+
" <t t-set=\"link\" t-value=\"'/mail/view?model=hr.appraisal&res_id=%s' % object.id\"/>\n"
|
|
109
|
+
" <a style=\"box-sizing:border-box;text-decoration:none;color:#7c7bad;background-color:#875A7B;padding:10px; color:#fff; border-radius:5px;\" t-att-href=\"link\">View Employee Appraisal</a>\n"
|
|
110
|
+
" </p>\n"
|
|
111
|
+
" </t>\n"
|
|
112
112
|
" </div>\n"
|
|
113
113
|
" "
|
|
114
114
|
msgstr ""
|
|
@@ -121,10 +121,10 @@ msgstr ""
|
|
|
121
121
|
#. module: hr_appraisal_oca
|
|
122
122
|
#: model_terms:ir.ui.view,arch_db:hr_appraisal_oca.view_employee_form
|
|
123
123
|
msgid ""
|
|
124
|
-
"<span class=\"o_stat_text\"
|
|
124
|
+
"<span class=\"o_stat_text\" invisible=\"last_appraisal_state == '3_done'\">\n"
|
|
125
125
|
" Ongoing\n"
|
|
126
126
|
" </span>\n"
|
|
127
|
-
" <span class=\"o_stat_text\"
|
|
127
|
+
" <span class=\"o_stat_text\" invisible=\"last_appraisal_state != '3_done'\">\n"
|
|
128
128
|
" Latest\n"
|
|
129
129
|
" </span>\n"
|
|
130
130
|
" <span class=\"o_stat_text\">\n"
|
|
@@ -140,16 +140,16 @@ msgstr ""
|
|
|
140
140
|
#. module: hr_appraisal_oca
|
|
141
141
|
#: model_terms:ir.ui.view,arch_db:hr_appraisal_oca.hr_appraisal_form_view
|
|
142
142
|
msgid ""
|
|
143
|
-
"<span class=\"text-end\"
|
|
144
|
-
" <span class=\"text-end\"
|
|
143
|
+
"<span class=\"text-end\" invisible=\"employee_feedback_published\">Not Visible to Manager </span>\n"
|
|
144
|
+
" <span class=\"text-end\" invisible=\"not employee_feedback_published or state == '1_new'\">Visible to Manager </span>\n"
|
|
145
|
+
" <span class=\"text-end\" invisible=\"not employee_feedback_published or state != '1_new'\">Visible & Editable by Manager </span>"
|
|
145
146
|
msgstr ""
|
|
146
147
|
|
|
147
148
|
#. module: hr_appraisal_oca
|
|
148
149
|
#: model_terms:ir.ui.view,arch_db:hr_appraisal_oca.hr_appraisal_form_view
|
|
149
150
|
msgid ""
|
|
150
|
-
"<span class=\"text-end\"
|
|
151
|
-
" <span class=\"text-end\"
|
|
152
|
-
" <span class=\"text-end\" attrs=\"{'invisible': "['|', ('employee_feedback_published', '=', False), ('state', '!=', '1_new')]"}\">Visible & Editable by Manager </span>"
|
|
151
|
+
"<span class=\"text-end\" invisible=\"manager_feedback_published or not can_see_manager_publish\">Not Visible to Employee </span>\n"
|
|
152
|
+
" <span class=\"text-end\" invisible=\"not manager_feedback_published or not can_see_manager_publish\">Visible to Employee </span>"
|
|
153
153
|
msgstr ""
|
|
154
154
|
|
|
155
155
|
#. module: hr_appraisal_oca
|
|
@@ -199,7 +199,6 @@ msgstr ""
|
|
|
199
199
|
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal_request_wizard__appraisal_id
|
|
200
200
|
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_employee__appraisal_ids
|
|
201
201
|
#: model_terms:ir.ui.view,arch_db:hr_appraisal_oca.hr_appraisal_form_view
|
|
202
|
-
#, python-format
|
|
203
202
|
msgid "Appraisal"
|
|
204
203
|
msgstr ""
|
|
205
204
|
|
|
@@ -227,7 +226,6 @@ msgstr ""
|
|
|
227
226
|
#. module: hr_appraisal_oca
|
|
228
227
|
#. odoo-python
|
|
229
228
|
#: code:addons/hr_appraisal_oca/models/hr_appraisal.py:0
|
|
230
|
-
#, python-format
|
|
231
229
|
msgid "Appraisal Form to Fill"
|
|
232
230
|
msgstr ""
|
|
233
231
|
|
|
@@ -235,7 +233,6 @@ msgstr ""
|
|
|
235
233
|
#. odoo-python
|
|
236
234
|
#: code:addons/hr_appraisal_oca/models/hr_appraisal.py:0
|
|
237
235
|
#: model_terms:ir.ui.view,arch_db:hr_appraisal_oca.hr_appraisal_request_wizard_view
|
|
238
|
-
#, python-format
|
|
239
236
|
msgid "Appraisal Request"
|
|
240
237
|
msgstr ""
|
|
241
238
|
|
|
@@ -298,6 +295,11 @@ msgstr ""
|
|
|
298
295
|
msgid "Basic Employee"
|
|
299
296
|
msgstr ""
|
|
300
297
|
|
|
298
|
+
#. module: hr_appraisal_oca
|
|
299
|
+
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal_request_wizard__body_has_template_value
|
|
300
|
+
msgid "Body content is the same as the template"
|
|
301
|
+
msgstr ""
|
|
302
|
+
|
|
301
303
|
#. module: hr_appraisal_oca
|
|
302
304
|
#: model:mail.activity.type,name:hr_appraisal_oca.mail_act_hr_appraisal_cfr
|
|
303
305
|
msgid "CFR"
|
|
@@ -371,7 +373,6 @@ msgstr ""
|
|
|
371
373
|
#. odoo-python
|
|
372
374
|
#: code:addons/hr_appraisal_oca/models/hr_appraisal.py:0
|
|
373
375
|
#: model_terms:ir.ui.view,arch_db:hr_appraisal_oca.hr_appraisal_wizard_form_view
|
|
374
|
-
#, python-format
|
|
375
376
|
msgid "Confirmation"
|
|
376
377
|
msgstr ""
|
|
377
378
|
|
|
@@ -507,7 +508,6 @@ msgstr ""
|
|
|
507
508
|
#. module: hr_appraisal_oca
|
|
508
509
|
#. odoo-python
|
|
509
510
|
#: code:addons/hr_appraisal_oca/models/hr_appraisal.py:0
|
|
510
|
-
#, python-format
|
|
511
511
|
msgid "Fill appraisal for %(employee)s "
|
|
512
512
|
msgstr ""
|
|
513
513
|
|
|
@@ -644,16 +644,6 @@ msgstr ""
|
|
|
644
644
|
msgid "Last Appraisal"
|
|
645
645
|
msgstr ""
|
|
646
646
|
|
|
647
|
-
#. module: hr_appraisal_oca
|
|
648
|
-
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal____last_update
|
|
649
|
-
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal_request_wizard____last_update
|
|
650
|
-
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal_tag____last_update
|
|
651
|
-
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal_template____last_update
|
|
652
|
-
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal_wizard____last_update
|
|
653
|
-
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_send_email_with_template____last_update
|
|
654
|
-
msgid "Last Modified on"
|
|
655
|
-
msgstr ""
|
|
656
|
-
|
|
657
647
|
#. module: hr_appraisal_oca
|
|
658
648
|
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal__write_uid
|
|
659
649
|
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal_request_wizard__write_uid
|
|
@@ -679,12 +669,6 @@ msgstr ""
|
|
|
679
669
|
msgid "Mail Template"
|
|
680
670
|
msgstr ""
|
|
681
671
|
|
|
682
|
-
#. module: hr_appraisal_oca
|
|
683
|
-
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal__message_main_attachment_id
|
|
684
|
-
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal_wizard__message_main_attachment_id
|
|
685
|
-
msgid "Main Attachment"
|
|
686
|
-
msgstr ""
|
|
687
|
-
|
|
688
672
|
#. module: hr_appraisal_oca
|
|
689
673
|
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal__manager_ids
|
|
690
674
|
msgid "Manager"
|
|
@@ -757,15 +741,9 @@ msgstr ""
|
|
|
757
741
|
#. module: hr_appraisal_oca
|
|
758
742
|
#. odoo-python
|
|
759
743
|
#: code:addons/hr_appraisal_oca/models/hr_employee.py:0
|
|
760
|
-
#, python-format
|
|
761
744
|
msgid "New and Pending Appraisals"
|
|
762
745
|
msgstr ""
|
|
763
746
|
|
|
764
|
-
#. module: hr_appraisal_oca
|
|
765
|
-
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal__activity_calendar_event_id
|
|
766
|
-
msgid "Next Activity Calendar Event"
|
|
767
|
-
msgstr ""
|
|
768
|
-
|
|
769
747
|
#. module: hr_appraisal_oca
|
|
770
748
|
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal__activity_date_deadline
|
|
771
749
|
msgid "Next Activity Deadline"
|
|
@@ -827,7 +805,6 @@ msgstr ""
|
|
|
827
805
|
#. module: hr_appraisal_oca
|
|
828
806
|
#. odoo-python
|
|
829
807
|
#: code:addons/hr_appraisal_oca/models/hr_appraisal.py:0
|
|
830
|
-
#, python-format
|
|
831
808
|
msgid "Previous Appraisals"
|
|
832
809
|
msgstr ""
|
|
833
810
|
|
|
@@ -852,11 +829,6 @@ msgstr ""
|
|
|
852
829
|
msgid "Recipients Users"
|
|
853
830
|
msgstr ""
|
|
854
831
|
|
|
855
|
-
#. module: hr_appraisal_oca
|
|
856
|
-
#: model:ir.model.fields,help:hr_appraisal_oca.field_hr_appraisal__employee_user_id
|
|
857
|
-
msgid "Related user name for the resource to manage its access."
|
|
858
|
-
msgstr ""
|
|
859
|
-
|
|
860
832
|
#. module: hr_appraisal_oca
|
|
861
833
|
#: model:ir.model.fields,field_description:hr_appraisal_oca.field_hr_appraisal_request_wizard__render_model
|
|
862
834
|
msgid "Rendering Model"
|
|
@@ -975,7 +947,6 @@ msgstr ""
|
|
|
975
947
|
#. module: hr_appraisal_oca
|
|
976
948
|
#. odoo-python
|
|
977
949
|
#: code:addons/hr_appraisal_oca/wizard/send_mail_with_template_wizard.py:0
|
|
978
|
-
#, python-format
|
|
979
950
|
msgid "Template with XML ID {template_xml_id} not found."
|
|
980
951
|
msgstr ""
|
|
981
952
|
|
|
@@ -1069,7 +1040,6 @@ msgstr ""
|
|
|
1069
1040
|
#. module: hr_appraisal_oca
|
|
1070
1041
|
#. odoo-python
|
|
1071
1042
|
#: code:addons/hr_appraisal_oca/wizard/hr_appraisal_wizard.py:0
|
|
1072
|
-
#, python-format
|
|
1073
1043
|
msgid ""
|
|
1074
1044
|
"{user_name} decided, as Appraisal Officer, to publish the employee's "
|
|
1075
1045
|
"feedback"
|
|
@@ -19,7 +19,6 @@ class HrAppraisal(models.Model):
|
|
|
19
19
|
required=True,
|
|
20
20
|
default=lambda self: self._default_employee_id(),
|
|
21
21
|
readonly=True,
|
|
22
|
-
states={"1_new": [("readonly", False)]},
|
|
23
22
|
domain="[('id', 'in', employee_domain_ids)]",
|
|
24
23
|
)
|
|
25
24
|
employee_domain_ids = fields.Many2many(
|
|
@@ -395,7 +394,7 @@ class HrAppraisal(models.Model):
|
|
|
395
394
|
return {
|
|
396
395
|
"name": _("Previous Appraisals"),
|
|
397
396
|
"type": "ir.actions.act_window",
|
|
398
|
-
"view_mode": "
|
|
397
|
+
"view_mode": "list,form",
|
|
399
398
|
"res_model": "hr.appraisal",
|
|
400
399
|
"domain": [("employee_id", "=", self.employee_id.id)],
|
|
401
400
|
"context": dict(
|
|
@@ -48,7 +48,8 @@
|
|
|
48
48
|
<record id="hr_appraisal_hr_officer_rule" model="ir.rule">
|
|
49
49
|
<field name="name">Appraisals - HR Officer Full Access</field>
|
|
50
50
|
<field name="model_id" ref="hr_appraisal_oca.model_hr_appraisal" />
|
|
51
|
-
<field name="domain_force">[(1, '=', 1)]</field>
|
|
51
|
+
<field name="domain_force">[(1, '=', 1)]</field>
|
|
52
|
+
<!-- no restrictions -->
|
|
52
53
|
<field name="global" eval="False" />
|
|
53
54
|
<field
|
|
54
55
|
name="groups"
|