Merge lp:~savoirfairelinux-openerp/openerp-hr/resume into lp:openerp-hr/6.1
- resume
- Merge into 6.1
Proposed by
El Hadji Dem (http://www.savoirfairelinux.com)
Status: | Merged |
---|---|
Merged at revision: | 307 |
Proposed branch: | lp:~savoirfairelinux-openerp/openerp-hr/resume |
Merge into: | lp:openerp-hr/6.1 |
Diff against target: |
524 lines (+472/-0) 10 files modified
hr_resume/__init__.py (+25/-0) hr_resume/__openerp__.py (+55/-0) hr_resume/hr_resume.py (+31/-0) hr_resume/hr_resume_view.xml (+18/-0) hr_resume/i18n/fr.po (+79/-0) hr_resume/i18n/hr_resume.pot (+79/-0) hr_resume/report/__init__.py (+24/-0) hr_resume/report/report_resume.py (+49/-0) hr_resume/report/report_resume.rml (+99/-0) hr_resume/report/report_resume.xml (+13/-0) |
To merge this branch: | bzr merge lp:~savoirfairelinux-openerp/openerp-hr/resume |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Joël Grand-Guillaume @ camptocamp | code review, no tests | Approve | |
Omar (Pexego) | code review | Approve | |
Maxime Chambreuil (http://www.savoirfairelinux.com) | code review | Approve | |
Review via email:
|
Commit message
Description of the change
[ADD] add hr_resume module.It inherits the emloyee view form and adds a report printing resume
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote : | # |
review:
Needs Fixing
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) : | # |
review:
Approve
(code review)
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Omar (Pexego) (omar7r) wrote : | # |
LGTM
review:
Approve
(code review)
- 309. By El Hadji Dem (http://www.savoirfairelinux.com)
-
[IMP] change report, pep8
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Joël Grand-Guillaume @ camptocamp (jgrandguillaume-c2c) wrote : | # |
Hi,
Thanks for the contrib. Would have been great to use "from . import XY" at line 27 and 28. But otherwise good. Don't want to block that little one for that.
Thanks
review:
Approve
(code review, no tests)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'hr_resume' | |||
2 | === added file 'hr_resume/__init__.py' | |||
3 | --- hr_resume/__init__.py 1970-01-01 00:00:00 +0000 | |||
4 | +++ hr_resume/__init__.py 2013-12-18 17:59:30 +0000 | |||
5 | @@ -0,0 +1,25 @@ | |||
6 | 1 | # -*- encoding: utf-8 -*- | ||
7 | 2 | ############################################################################### | ||
8 | 3 | # | ||
9 | 4 | # OpenERP, Open Source Management Solution | ||
10 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
11 | 6 | # | ||
12 | 7 | # This program is free software: you can redistribute it and/or modify | ||
13 | 8 | # it under the terms of the GNU Affero General Public License as | ||
14 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
15 | 10 | # License, or (at your option) any later version. | ||
16 | 11 | # | ||
17 | 12 | # This program is distributed in the hope that it will be useful, | ||
18 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
20 | 15 | # GNU Affero General Public License for more details. | ||
21 | 16 | # | ||
22 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
23 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
24 | 19 | # | ||
25 | 20 | ############################################################################### | ||
26 | 21 | |||
27 | 22 | import hr_resume | ||
28 | 23 | import report | ||
29 | 24 | |||
30 | 25 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
31 | 0 | 26 | ||
32 | === added file 'hr_resume/__openerp__.py' | |||
33 | --- hr_resume/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
34 | +++ hr_resume/__openerp__.py 2013-12-18 17:59:30 +0000 | |||
35 | @@ -0,0 +1,55 @@ | |||
36 | 1 | # -*- encoding: utf-8 -*- | ||
37 | 2 | ############################################################################### | ||
38 | 3 | # | ||
39 | 4 | # OpenERP, Open Source Management Solution | ||
40 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
41 | 6 | # | ||
42 | 7 | # This program is free software: you can redistribute it and/or modify | ||
43 | 8 | # it under the terms of the GNU Affero General Public License as | ||
44 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
45 | 10 | # License, or (at your option) any later version. | ||
46 | 11 | # | ||
47 | 12 | # This program is distributed in the hope that it will be useful, | ||
48 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
49 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
50 | 15 | # GNU Affero General Public License for more details. | ||
51 | 16 | # | ||
52 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
53 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
54 | 19 | # | ||
55 | 20 | ############################################################################### | ||
56 | 21 | |||
57 | 22 | { | ||
58 | 23 | "name": "Resume Management", | ||
59 | 24 | "version": "0.1", | ||
60 | 25 | "author": "Savoir-faire Linux", | ||
61 | 26 | "maintainer": "Savoir-faire Linux", | ||
62 | 27 | "website": "http://www.savoirfairelinux.com", | ||
63 | 28 | "category": "Human Resources", | ||
64 | 29 | "description": """ | ||
65 | 30 | Resume Management | ||
66 | 31 | ================= | ||
67 | 32 | |||
68 | 33 | This module allows you to manage your employee resumes. | ||
69 | 34 | |||
70 | 35 | Contributors | ||
71 | 36 | ------------ | ||
72 | 37 | * El Hadji DEM (elhadji.dem@savoirfairelinux.com) | ||
73 | 38 | """, | ||
74 | 39 | |||
75 | 40 | "depends": [ | ||
76 | 41 | "hr_experience", | ||
77 | 42 | "hr_skill", | ||
78 | 43 | "hr_language", | ||
79 | 44 | ], | ||
80 | 45 | 'data': ['hr_resume_view.xml', | ||
81 | 46 | 'report/report_resume.xml', | ||
82 | 47 | ], | ||
83 | 48 | 'external_dependencies': {}, | ||
84 | 49 | "demo": [], | ||
85 | 50 | "test": [], | ||
86 | 51 | "installable": True, | ||
87 | 52 | "active": False, | ||
88 | 53 | } | ||
89 | 54 | |||
90 | 55 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
91 | 0 | 56 | ||
92 | === added file 'hr_resume/hr_resume.py' | |||
93 | --- hr_resume/hr_resume.py 1970-01-01 00:00:00 +0000 | |||
94 | +++ hr_resume/hr_resume.py 2013-12-18 17:59:30 +0000 | |||
95 | @@ -0,0 +1,31 @@ | |||
96 | 1 | # -*- encoding: utf-8 -*- | ||
97 | 2 | ############################################################################### | ||
98 | 3 | # | ||
99 | 4 | # OpenERP, Open Source Management Solution | ||
100 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
101 | 6 | # | ||
102 | 7 | # This program is free software: you can redistribute it and/or modify | ||
103 | 8 | # it under the terms of the GNU Affero General Public License as | ||
104 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
105 | 10 | # License, or (at your option) any later version. | ||
106 | 11 | # | ||
107 | 12 | # This program is distributed in the hope that it will be useful, | ||
108 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
109 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
110 | 15 | # GNU Affero General Public License for more details. | ||
111 | 16 | # | ||
112 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
113 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
114 | 19 | # | ||
115 | 20 | ############################################################################### | ||
116 | 21 | |||
117 | 22 | from openerp.osv import fields, orm | ||
118 | 23 | |||
119 | 24 | |||
120 | 25 | class hr_employee(orm.Model): | ||
121 | 26 | _inherit = 'hr.employee' | ||
122 | 27 | _columns = { | ||
123 | 28 | 'biography': fields.text('Biography'), | ||
124 | 29 | } | ||
125 | 30 | |||
126 | 31 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
127 | 0 | 32 | ||
128 | === added file 'hr_resume/hr_resume_view.xml' | |||
129 | --- hr_resume/hr_resume_view.xml 1970-01-01 00:00:00 +0000 | |||
130 | +++ hr_resume/hr_resume_view.xml 2013-12-18 17:59:30 +0000 | |||
131 | @@ -0,0 +1,18 @@ | |||
132 | 1 | <openerp> | ||
133 | 2 | <data> | ||
134 | 3 | <!-- inherit Employee --> | ||
135 | 4 | <record model="ir.ui.view" id="view_employee_form"> | ||
136 | 5 | <field name="name">hr.resume.employee.form</field> | ||
137 | 6 | <field name="model">hr.employee</field> | ||
138 | 7 | <field name="inherit_id" ref="hr.view_employee_form"/> | ||
139 | 8 | <field name="type">form</field> | ||
140 | 9 | <field name="arch" type="xml"> | ||
141 | 10 | <notebook position="inside"> | ||
142 | 11 | <page string="Biography"> | ||
143 | 12 | <field name="biography" nolabel="1" colspan="4"/> | ||
144 | 13 | </page> | ||
145 | 14 | </notebook> | ||
146 | 15 | </field> | ||
147 | 16 | </record> | ||
148 | 17 | </data> | ||
149 | 18 | </openerp> | ||
150 | 0 | 19 | ||
151 | === added directory 'hr_resume/i18n' | |||
152 | === added file 'hr_resume/i18n/fr.po' | |||
153 | --- hr_resume/i18n/fr.po 1970-01-01 00:00:00 +0000 | |||
154 | +++ hr_resume/i18n/fr.po 2013-12-18 17:59:30 +0000 | |||
155 | @@ -0,0 +1,79 @@ | |||
156 | 1 | # Translation of OpenERP Server. | ||
157 | 2 | # This file contains the translation of the following modules: | ||
158 | 3 | # * hr_resume | ||
159 | 4 | # | ||
160 | 5 | msgid "" | ||
161 | 6 | msgstr "" | ||
162 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
163 | 8 | "Report-Msgid-Bugs-To: \n" | ||
164 | 9 | "POT-Creation-Date: 2013-11-14 21:20+0000\n" | ||
165 | 10 | "PO-Revision-Date: 2013-11-14 21:20+0000\n" | ||
166 | 11 | "Last-Translator: <>\n" | ||
167 | 12 | "Language-Team: \n" | ||
168 | 13 | "MIME-Version: 1.0\n" | ||
169 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
170 | 15 | "Content-Transfer-Encoding: \n" | ||
171 | 16 | "Plural-Forms: \n" | ||
172 | 17 | |||
173 | 18 | #. module: hr_resume | ||
174 | 19 | #: report:hr.resume.report:0 | ||
175 | 20 | msgid "Certifications" | ||
176 | 21 | msgstr "Certifications" | ||
177 | 22 | |||
178 | 23 | #. module: hr_resume | ||
179 | 24 | #: report:hr.resume.report:0 | ||
180 | 25 | msgid "Resume" | ||
181 | 26 | msgstr "CV" | ||
182 | 27 | |||
183 | 28 | #. module: hr_resume | ||
184 | 29 | #: report:hr.resume.report:0 | ||
185 | 30 | msgid "Academic Background" | ||
186 | 31 | msgstr "Formation académique" | ||
187 | 32 | |||
188 | 33 | #. module: hr_resume | ||
189 | 34 | #: report:hr.resume.report:0 | ||
190 | 35 | msgid "Professional Experiences" | ||
191 | 36 | msgstr "Expériences professionnelles" | ||
192 | 37 | |||
193 | 38 | #. module: hr_resume | ||
194 | 39 | #: report:hr.resume.report:0 | ||
195 | 40 | msgid "Diploma:" | ||
196 | 41 | msgstr "Diplôme:" | ||
197 | 42 | |||
198 | 43 | #. module: hr_resume | ||
199 | 44 | #: report:hr.resume.report:0 | ||
200 | 45 | msgid "Field of Study:" | ||
201 | 46 | msgstr "Domaine d'études:" | ||
202 | 47 | |||
203 | 48 | #. module: hr_resume | ||
204 | 49 | #: report:hr.resume.report:0 | ||
205 | 50 | msgid "Languages" | ||
206 | 51 | msgstr "Langages" | ||
207 | 52 | |||
208 | 53 | #. module: hr_resume | ||
209 | 54 | #: model:ir.model,name:hr_resume.model_hr_employee | ||
210 | 55 | msgid "Employee" | ||
211 | 56 | msgstr "Employé" | ||
212 | 57 | |||
213 | 58 | #. module: hr_resume | ||
214 | 59 | #: model:ir.actions.report.xml,name:hr_resume.hr_resume_report | ||
215 | 60 | msgid "Print Resume" | ||
216 | 61 | msgstr "Imprimer CV" | ||
217 | 62 | |||
218 | 63 | #. module: hr_resume | ||
219 | 64 | #: report:hr.resume.report:0 | ||
220 | 65 | msgid "Skills" | ||
221 | 66 | msgstr "Compétences" | ||
222 | 67 | |||
223 | 68 | #. module: hr_resume | ||
224 | 69 | #: report:hr.resume.report:0 | ||
225 | 70 | msgid "Certification Number:" | ||
226 | 71 | msgstr "Numéro de certification:" | ||
227 | 72 | |||
228 | 73 | #. module: hr_resume | ||
229 | 74 | #: view:hr.employee:0 | ||
230 | 75 | #: field:hr.employee,biography:0 | ||
231 | 76 | #: report:hr.resume.report:0 | ||
232 | 77 | msgid "Biography" | ||
233 | 78 | msgstr "Biographie" | ||
234 | 79 | |||
235 | 0 | 80 | ||
236 | === added file 'hr_resume/i18n/hr_resume.pot' | |||
237 | --- hr_resume/i18n/hr_resume.pot 1970-01-01 00:00:00 +0000 | |||
238 | +++ hr_resume/i18n/hr_resume.pot 2013-12-18 17:59:30 +0000 | |||
239 | @@ -0,0 +1,79 @@ | |||
240 | 1 | # Translation of OpenERP Server. | ||
241 | 2 | # This file contains the translation of the following modules: | ||
242 | 3 | # * hr_resume | ||
243 | 4 | # | ||
244 | 5 | msgid "" | ||
245 | 6 | msgstr "" | ||
246 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
247 | 8 | "Report-Msgid-Bugs-To: \n" | ||
248 | 9 | "POT-Creation-Date: 2013-11-15 14:23+0000\n" | ||
249 | 10 | "PO-Revision-Date: 2013-11-15 14:23+0000\n" | ||
250 | 11 | "Last-Translator: <>\n" | ||
251 | 12 | "Language-Team: \n" | ||
252 | 13 | "MIME-Version: 1.0\n" | ||
253 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
254 | 15 | "Content-Transfer-Encoding: \n" | ||
255 | 16 | "Plural-Forms: \n" | ||
256 | 17 | |||
257 | 18 | #. module: hr_resume | ||
258 | 19 | #: report:hr.resume.report:0 | ||
259 | 20 | msgid "Certifications" | ||
260 | 21 | msgstr "" | ||
261 | 22 | |||
262 | 23 | #. module: hr_resume | ||
263 | 24 | #: report:hr.resume.report:0 | ||
264 | 25 | msgid "Resume" | ||
265 | 26 | msgstr "" | ||
266 | 27 | |||
267 | 28 | #. module: hr_resume | ||
268 | 29 | #: report:hr.resume.report:0 | ||
269 | 30 | msgid "Academic Background" | ||
270 | 31 | msgstr "" | ||
271 | 32 | |||
272 | 33 | #. module: hr_resume | ||
273 | 34 | #: report:hr.resume.report:0 | ||
274 | 35 | msgid "Professional Experiences" | ||
275 | 36 | msgstr "" | ||
276 | 37 | |||
277 | 38 | #. module: hr_resume | ||
278 | 39 | #: report:hr.resume.report:0 | ||
279 | 40 | msgid "Diploma:" | ||
280 | 41 | msgstr "" | ||
281 | 42 | |||
282 | 43 | #. module: hr_resume | ||
283 | 44 | #: report:hr.resume.report:0 | ||
284 | 45 | msgid "Field of Study:" | ||
285 | 46 | msgstr "" | ||
286 | 47 | |||
287 | 48 | #. module: hr_resume | ||
288 | 49 | #: report:hr.resume.report:0 | ||
289 | 50 | msgid "Languages" | ||
290 | 51 | msgstr "" | ||
291 | 52 | |||
292 | 53 | #. module: hr_resume | ||
293 | 54 | #: model:ir.model,name:hr_resume.model_hr_employee | ||
294 | 55 | msgid "Employee" | ||
295 | 56 | msgstr "" | ||
296 | 57 | |||
297 | 58 | #. module: hr_resume | ||
298 | 59 | #: model:ir.actions.report.xml,name:hr_resume.hr_resume_report | ||
299 | 60 | msgid "Print Resume" | ||
300 | 61 | msgstr "" | ||
301 | 62 | |||
302 | 63 | #. module: hr_resume | ||
303 | 64 | #: report:hr.resume.report:0 | ||
304 | 65 | msgid "Skills" | ||
305 | 66 | msgstr "" | ||
306 | 67 | |||
307 | 68 | #. module: hr_resume | ||
308 | 69 | #: report:hr.resume.report:0 | ||
309 | 70 | msgid "Certification Number:" | ||
310 | 71 | msgstr "" | ||
311 | 72 | |||
312 | 73 | #. module: hr_resume | ||
313 | 74 | #: view:hr.employee:0 | ||
314 | 75 | #: field:hr.employee,biography:0 | ||
315 | 76 | #: report:hr.resume.report:0 | ||
316 | 77 | msgid "Biography" | ||
317 | 78 | msgstr "" | ||
318 | 79 | |||
319 | 0 | 80 | ||
320 | === added directory 'hr_resume/report' | |||
321 | === added file 'hr_resume/report/__init__.py' | |||
322 | --- hr_resume/report/__init__.py 1970-01-01 00:00:00 +0000 | |||
323 | +++ hr_resume/report/__init__.py 2013-12-18 17:59:30 +0000 | |||
324 | @@ -0,0 +1,24 @@ | |||
325 | 1 | # -*- encoding: utf-8 -*- | ||
326 | 2 | ############################################################################### | ||
327 | 3 | # | ||
328 | 4 | # OpenERP, Open Source Management Solution | ||
329 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
330 | 6 | # | ||
331 | 7 | # This program is free software: you can redistribute it and/or modify | ||
332 | 8 | # it under the terms of the GNU Affero General Public License as | ||
333 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
334 | 10 | # License, or (at your option) any later version. | ||
335 | 11 | # | ||
336 | 12 | # This program is distributed in the hope that it will be useful, | ||
337 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
338 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
339 | 15 | # GNU Affero General Public License for more details. | ||
340 | 16 | # | ||
341 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
342 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
343 | 19 | # | ||
344 | 20 | ############################################################################### | ||
345 | 21 | |||
346 | 22 | import report_resume | ||
347 | 23 | |||
348 | 24 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
349 | 0 | 25 | ||
350 | === added file 'hr_resume/report/report_resume.py' | |||
351 | --- hr_resume/report/report_resume.py 1970-01-01 00:00:00 +0000 | |||
352 | +++ hr_resume/report/report_resume.py 2013-12-18 17:59:30 +0000 | |||
353 | @@ -0,0 +1,49 @@ | |||
354 | 1 | # -*- encoding: utf-8 -*- | ||
355 | 2 | ############################################################################### | ||
356 | 3 | # | ||
357 | 4 | # OpenERP, Open Source Management Solution | ||
358 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
359 | 6 | # | ||
360 | 7 | # This program is free software: you can redistribute it and/or modify | ||
361 | 8 | # it under the terms of the GNU Affero General Public License as | ||
362 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
363 | 10 | # License, or (at your option) any later version. | ||
364 | 11 | # | ||
365 | 12 | # This program is distributed in the hope that it will be useful, | ||
366 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
367 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
368 | 15 | # GNU Affero General Public License for more details. | ||
369 | 16 | # | ||
370 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
371 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
372 | 19 | # | ||
373 | 20 | ############################################################################### | ||
374 | 21 | |||
375 | 22 | import time | ||
376 | 23 | from report import report_sxw | ||
377 | 24 | |||
378 | 25 | |||
379 | 26 | class report_resume(report_sxw.rml_parse): | ||
380 | 27 | |||
381 | 28 | def __init__(self, cr, uid, name, context): | ||
382 | 29 | super(report_resume, self).__init__(cr, uid, name, context) | ||
383 | 30 | self.localcontext.update({ | ||
384 | 31 | 'time': time, | ||
385 | 32 | }) | ||
386 | 33 | |||
387 | 34 | def get_experience_by_category(self, employee_id, category): | ||
388 | 35 | self.cr.execute("SELECT exp.name, exp.start_date, exp.expire, exp.end_date, exp.location, exp.certification, \ | ||
389 | 36 | exp.description, exp.diploma, exp.study_field, part.name partner_name FROM hr_experience exp \ | ||
390 | 37 | LEFT JOIN res_partner part ON part.id = exp.partner_id \ | ||
391 | 38 | WHERE exp.employee_id = %d AND exp.category = '%s'" % (employee_id, category)) | ||
392 | 39 | return self.cr.dictfetchall() | ||
393 | 40 | |||
394 | 41 | report_sxw.report_sxw( | ||
395 | 42 | 'report.hr.resume.report', | ||
396 | 43 | 'hr.employee', | ||
397 | 44 | 'addons/hr_resume/report/report_resume.rml', | ||
398 | 45 | parser=report_resume, | ||
399 | 46 | header=False | ||
400 | 47 | ) | ||
401 | 48 | |||
402 | 49 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
403 | 0 | 50 | ||
404 | === added file 'hr_resume/report/report_resume.rml' | |||
405 | --- hr_resume/report/report_resume.rml 1970-01-01 00:00:00 +0000 | |||
406 | +++ hr_resume/report/report_resume.rml 2013-12-18 17:59:30 +0000 | |||
407 | @@ -0,0 +1,99 @@ | |||
408 | 1 | <?xml version="1.0"?> | ||
409 | 2 | <document filename="Resume.pdf"> | ||
410 | 3 | <template pageSize="(595.0,842.0)" title="Resume" author="Savoir-faire Linux" allowSplitting="20"> | ||
411 | 4 | <pageTemplate id="first"> | ||
412 | 5 | <frame id="first" x1="15.0" y1="42.0" width="539" height="758"/> | ||
413 | 6 | </pageTemplate> | ||
414 | 7 | </template> | ||
415 | 8 | <stylesheet> | ||
416 | 9 | <blockTableStyle id="Standard_Outline"> | ||
417 | 10 | <blockAlignment value="LEFT"/> | ||
418 | 11 | <blockValign value="TOP"/> | ||
419 | 12 | </blockTableStyle> | ||
420 | 13 | <initialize> | ||
421 | 14 | <paraStyle name="all" alignment="justify"/> | ||
422 | 15 | </initialize> | ||
423 | 16 | <paraStyle name="Standard" fontName="Helvetica"/> | ||
424 | 17 | <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> | ||
425 | 18 | <paraStyle name="Heading" fontName="Helvetica" fontSize="8.0" leading="10" spaceBefore="12.0" spaceAfter="6.0"/> | ||
426 | 19 | <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> | ||
427 | 20 | <paraStyle name="Table Contents" fontName="Helvetica"/> | ||
428 | 21 | <paraStyle name="Table Heading" fontName="Helvetica" alignment="CENTER"/> | ||
429 | 22 | <paraStyle name="Caption" fontName="Helvetica" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/> | ||
430 | 23 | <paraStyle name="Index" fontName="Helvetica"/> | ||
431 | 24 | <paraStyle name="terp_header" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/> | ||
432 | 25 | <paraStyle name="terp_default_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
433 | 26 | <paraStyle name="terp_default_Bold_8" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
434 | 27 | <paraStyle name="terp_default_Bold_9" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
435 | 28 | <paraStyle name="terp_default_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
436 | 29 | <paraStyle name="terp_tblheader_General" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/> | ||
437 | 30 | <paraStyle name="terp_tblheader_General_Centre" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/> | ||
438 | 31 | <paraStyle name="terp_default_Centre_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/> | ||
439 | 32 | <paraStyle name="terp_tblheader_Details" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/> | ||
440 | 33 | <paraStyle name="Footer" fontName="Helvetica"/> | ||
441 | 34 | <paraStyle name="Horizontal Line" fontName="Helvetica" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="14.0"/> | ||
442 | 35 | <paraStyle name="Heading 9" fontName="Helvetica-Bold" fontSize="75%" leading="NaN" spaceBefore="12.0" spaceAfter="6.0"/> | ||
443 | 36 | <paraStyle name="terp_tblheader_General_Right" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/> | ||
444 | 37 | <paraStyle name="terp_tblheader_Details_Centre" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/> | ||
445 | 38 | <paraStyle name="terp_tblheader_Details_Right" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/> | ||
446 | 39 | <paraStyle name="terp_default_Right_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
447 | 40 | <paraStyle name="terp_header_Right" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/> | ||
448 | 41 | <paraStyle name="terp_header_Centre" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="CENTER" spaceBefore="12.0" spaceAfter="6.0"/> | ||
449 | 42 | <paraStyle name="terp_default_address" fontName="Helvetica" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
450 | 43 | <paraStyle name="terp_default_Centre_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/> | ||
451 | 44 | <paraStyle name="terp_default_Right_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
452 | 45 | <paraStyle name="terp_default_1" fontName="Helvetica" fontSize="2.0" leading="3" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
453 | 46 | <paraStyle name="terp_default_Right_9_Bold" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
454 | 47 | <paraStyle name="terp_default_Italic" rightIndent="0.0" leftIndent="20.0" fontName="Helvetica-Oblique" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
455 | 48 | <paraStyle name="Preformatted Text" fontName="Helvetica" fontSize="10.0" leading="13" spaceBefore="0.0" spaceAfter="0.0"/> | ||
456 | 49 | <paraStyle name="terp_default_Centre_9_Bold" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/> | ||
457 | 50 | <images/> | ||
458 | 51 | </stylesheet> | ||
459 | 52 | <story> | ||
460 | 53 | <pto> | ||
461 | 54 | <para style="terp_default_8">[[repeatIn(objects,'o')]]</para> | ||
462 | 55 | <para style="terp_default_8">[[setLang(user.lang)]]</para> | ||
463 | 56 | <!--<image x="1.3cm" y="27.6cm" height="40.0" width="100" alignment="LEFT">[[ company.logo or removeParentNode('image') ]]</image>--> | ||
464 | 57 | <para style="terp_header_Centre">Resume</para> | ||
465 | 58 | <para style="terp_header_Centre">[[ o.name ]]</para> | ||
466 | 59 | <para style="terp_header_Centre">[[ o.job_id.name ]]</para> | ||
467 | 60 | <para style="terp_header">Biography</para> | ||
468 | 61 | <para>[[ o.biography ]]</para> | ||
469 | 62 | <para style="terp_header">Skills</para> | ||
470 | 63 | <section> | ||
471 | 64 | <para>[[repeatIn(o.skill_ids,'skill')]]</para> | ||
472 | 65 | <para>- [[ skill.name ]] </para> | ||
473 | 66 | </section> | ||
474 | 67 | <para style="terp_header">Certifications</para> | ||
475 | 68 | <section> | ||
476 | 69 | <para >[[repeatIn(o.certification_ids,'certification')]]</para> | ||
477 | 70 | <para style="terp_default_Bold_9">[[ certification.name ]] , [[ certification.partner_id.name ]]</para> | ||
478 | 71 | <para>[[ certification.start_date ]] - [[ certification.expire and certification.end_date or 'Now' ]]</para> | ||
479 | 72 | <para>[[ certification.location or removeParentNode('para') ]]</para> | ||
480 | 73 | <para>Certification Number: [[ certification.certification or removeParentNode('para') ]]</para> | ||
481 | 74 | </section> | ||
482 | 75 | <para style="terp_header">Professional Experiences</para> | ||
483 | 76 | <section> | ||
484 | 77 | <para >[[repeatIn(o.professional_ids,'professional')]]</para> | ||
485 | 78 | <para style="terp_default_Bold_9">[[ professional.name ]] [[ professional.location or '' ]]</para> | ||
486 | 79 | <para>[[ professional.start_date ]] - [[ professional.expire and professional.end_date or 'Now' ]]</para> | ||
487 | 80 | <para>[[ professional.partner_id.name ]]</para> | ||
488 | 81 | <para>[[ professional.description ]]</para> | ||
489 | 82 | </section> | ||
490 | 83 | <para style="terp_header">Academic Background</para> | ||
491 | 84 | <section> | ||
492 | 85 | <para >[[repeatIn(o.academic_ids,'academic')]]</para> | ||
493 | 86 | <para style="terp_default_Bold_9">[[ academic.name ]]</para> | ||
494 | 87 | <para>[[ academic.start_date ]] - [[ academic.expire and academic.end_date or 'Now' ]]</para> | ||
495 | 88 | <para>[[ academic.partner_id.name ]]</para> | ||
496 | 89 | <para>Diploma: [[ academic.diploma or removeParentNode('para') ]]</para> | ||
497 | 90 | <para>Field of Study: [[ academic.study_field or removeParentNode('para') ]]</para> | ||
498 | 91 | </section> | ||
499 | 92 | <para style="terp_header">Languages</para> | ||
500 | 93 | <section> | ||
501 | 94 | <para>[[repeatIn(o.language_ids,'language')]]</para> | ||
502 | 95 | <para>- [[ language.description ]] : [[ language.read and 'Read' or '' ]], [[ language.write and 'Write' or '' ]], [[ language.speak and 'Speak' or '' ]]</para> | ||
503 | 96 | </section> | ||
504 | 97 | </pto> | ||
505 | 98 | </story> | ||
506 | 99 | </document> | ||
507 | 0 | 100 | ||
508 | === added file 'hr_resume/report/report_resume.xml' | |||
509 | --- hr_resume/report/report_resume.xml 1970-01-01 00:00:00 +0000 | |||
510 | +++ hr_resume/report/report_resume.xml 2013-12-18 17:59:30 +0000 | |||
511 | @@ -0,0 +1,13 @@ | |||
512 | 1 | <?xml version="1.0"?> | ||
513 | 2 | <openerp> | ||
514 | 3 | <data> | ||
515 | 4 | <report | ||
516 | 5 | id="hr_resume_report" | ||
517 | 6 | string="Print Resume" | ||
518 | 7 | model="hr.employee" | ||
519 | 8 | name="hr.resume.report" | ||
520 | 9 | rml="hr_resume/report/report_resume.rml" | ||
521 | 10 | auto="False" | ||
522 | 11 | menu="True"/> | ||
523 | 12 | </data> | ||
524 | 13 | </openerp> |
Diff is empty.