Merge lp:~savoirfairelinux-openerp/openerp-hr/experience into lp:openerp-hr/6.1

Status: Rejected
Rejected by: Sandy Carter (http://www.savoirfairelinux.com) on 2014-07-11
Proposed branch: lp:~savoirfairelinux-openerp/openerp-hr/experience
Merge into: lp:openerp-hr/6.1
Diff against target: 771 lines (+709/-0)
12 files modified
hr_experience/__init__.py (+26/-0)
hr_experience/__openerp__.py (+59/-0)
hr_experience/hr_academic.py (+52/-0)
hr_experience/hr_academic_view.xml (+61/-0)
hr_experience/hr_certification.py (+50/-0)
hr_experience/hr_certification_view.xml (+59/-0)
hr_experience/hr_experience_view.xml (+24/-0)
hr_experience/hr_professional.py (+49/-0)
hr_experience/hr_professional_view.xml (+55/-0)
hr_experience/i18n/hr_experience.pot (+208/-0)
hr_experience/security/hr_experience_security.xml (+62/-0)
hr_experience/security/ir.model.access.csv (+4/-0)
To merge this branch: bzr merge lp:~savoirfairelinux-openerp/openerp-hr/experience
Reviewer Review Type Date Requested Status
Yannick Vaucher @ Camptocamp code review, no tests Needs Fixing on 2014-02-13
Joël Grand-Guillaume @ camptocamp code review, no tests Needs Fixing on 2013-12-20
Joao Alfredo Gama Batista Needs Fixing on 2013-11-15
Maxime Chambreuil (http://www.savoirfairelinux.com) code review 2013-11-12 Approve on 2013-11-13
Review via email: mp+194926@code.launchpad.net

Description of the change

[ADD] add hr_experience module.It adds a new menu in hr module and inherits the employee view form

To post a comment you must log in.
review: Approve (code review)

Hi El Hadji,

Thanks for your contribution. As for the review I have this 2 points that you can improve.

l.100.103.132: Even in 6.1 the osv is considered deprecated (osv.osv actually points to orm.Model) so for the import is better to use "from openerp.osv import orm, fields" and for the models it's better to inherit from orm.Model istead of osv.osv.

l.129.137: In 6.1 we don't need to instantiate the model after defining it.

review: Needs Fixing

Hi,

Thanks for the contrib. A few remarks:

 * Line 27-29 use from . import XY
 * From a security point of view, is the hr_user the right person to create and delete the hr.academic, hr.professionnal, hr.certification object ? I would may be suggest hr_manager instead for that while keeping hr_user the read right, what do you think ?

Regards,

Joël

review: Needs Fixing (code review, no tests)

Hello Joêl,

We want employees to be able to create and manage their own resume, including academic and professional experiences and certifications.

Our next step is to integrate with LinkedIn to allow the employee to import its LinkedIn data :
https://blueprints.launchpad.net/openerp-hr/+spec/resume-management

Thnaks maxime

Looks good.

Just one thing about security, I think you just need some ir.rule to make sure hr_user1 can't modify hr_user2 experience data.

You might need a user_id field on all those objects.

review: Needs Fixing (code review, no tests)

1 month without activity, I set this as WIP

Unmerged revisions

313. By Maxime Chambreuil (http://www.savoirfairelinux.com) on 2014-04-21

[ADD] Security rules

312. By Maxime Chambreuil (http://www.savoirfairelinux.com) on 2013-12-31

[IMP] Use specific term instead of partner.

311. By Maxime Chambreuil (http://www.savoirfairelinux.com) on 2013-12-31

[IMP] Update translation file

310. By Maxime Chambreuil (http://www.savoirfairelinux.com) on 2013-12-23

[FIX] Based on MP reviews. Improve XML readability

309. By El Hadji Dem (http://www.savoirfairelinux.com) on 2013-12-18

[IMP] separate academic, certification and professional experiences, pep8

308. By El Hadji Dem (http://www.savoirfairelinux.com) on 2013-12-18

[IMP] separate academic, certification and professional experience, pep8

307. By EL HADJI DEM <email address hidden> on 2013-11-15

[IMP] add pot file

306. By EL HADJI DEM <email address hidden> on 2013-11-12

[ADD] add hr_experience module

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'hr_experience'
2=== added file 'hr_experience/__init__.py'
3--- hr_experience/__init__.py 1970-01-01 00:00:00 +0000
4+++ hr_experience/__init__.py 2014-04-21 15:39:45 +0000
5@@ -0,0 +1,26 @@
6+# -*- encoding: utf-8 -*-
7+###############################################################################
8+#
9+# OpenERP, Open Source Management Solution
10+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
11+#
12+# This program is free software: you can redistribute it and/or modify
13+# it under the terms of the GNU Affero General Public License as
14+# published by the Free Software Foundation, either version 3 of the
15+# License, or (at your option) any later version.
16+#
17+# This program is distributed in the hope that it will be useful,
18+# but WITHOUT ANY WARRANTY; without even the implied warranty of
19+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+# GNU Affero General Public License for more details.
21+#
22+# You should have received a copy of the GNU Affero General Public License
23+# along with this program. If not, see <http://www.gnu.org/licenses/>.
24+#
25+###############################################################################
26+
27+from . import hr_academic
28+from . import hr_professional
29+from . import hr_certification
30+
31+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
32
33=== added file 'hr_experience/__openerp__.py'
34--- hr_experience/__openerp__.py 1970-01-01 00:00:00 +0000
35+++ hr_experience/__openerp__.py 2014-04-21 15:39:45 +0000
36@@ -0,0 +1,59 @@
37+# -*- encoding: utf-8 -*-
38+###############################################################################
39+#
40+# OpenERP, Open Source Management Solution
41+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
42+#
43+# This program is free software: you can redistribute it and/or modify
44+# it under the terms of the GNU Affero General Public License as
45+# published by the Free Software Foundation, either version 3 of the
46+# License, or (at your option) any later version.
47+#
48+# This program is distributed in the hope that it will be useful,
49+# but WITHOUT ANY WARRANTY; without even the implied warranty of
50+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51+# GNU Affero General Public License for more details.
52+#
53+# You should have received a copy of the GNU Affero General Public License
54+# along with this program. If not, see <http://www.gnu.org/licenses/>.
55+#
56+###############################################################################
57+
58+{
59+ "name": "Experience Management",
60+ "version": "0.1",
61+ "author": "Savoir-faire Linux",
62+ "maintainer": 'Savoir-faire Linux',
63+ "website": "http://www.savoirfairelinux.com",
64+ "category": "Human Resources",
65+ "description": """
66+Experience Management
67+=====================
68+
69+This module allows you to manage your employee experiences:
70+ * Professional
71+ * Academic
72+ * Certification
73+
74+Contributors
75+------------
76+* El Hadji DEM <elhaji.dem@savoirfairelinux.com>
77+* Maxime Chambreuil <maxime.chambreuil@savoirfairelinux.com>
78+""",
79+
80+ "depends": ["hr"],
81+ 'external_dependencies': {},
82+ 'data': [
83+ "security/ir.model.access.csv",
84+ "security/hr_experience_security.xml",
85+ "hr_experience_view.xml",
86+ "hr_academic_view.xml",
87+ "hr_professional_view.xml",
88+ "hr_certification_view.xml",
89+ ],
90+ "demo": [],
91+ "test": [],
92+ "installable": True,
93+ "active": False,
94+}
95+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
96
97=== added file 'hr_experience/hr_academic.py'
98--- hr_experience/hr_academic.py 1970-01-01 00:00:00 +0000
99+++ hr_experience/hr_academic.py 2014-04-21 15:39:45 +0000
100@@ -0,0 +1,52 @@
101+# -*- encoding: utf-8 -*-
102+###############################################################################
103+#
104+# OpenERP, Open Source Management Solution
105+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
106+#
107+# This program is free software: you can redistribute it and/or modify
108+# it under the terms of the GNU Affero General Public License as
109+# published by the Free Software Foundation, either version 3 of the
110+# License, or (at your option) any later version.
111+#
112+# This program is distributed in the hope that it will be useful,
113+# but WITHOUT ANY WARRANTY; without even the implied warranty of
114+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
115+# GNU Affero General Public License for more details.
116+#
117+# You should have received a copy of the GNU Affero General Public License
118+# along with this program. If not, see <http://www.gnu.org/licenses/>.
119+#
120+###############################################################################
121+
122+from openerp.osv import fields, orm
123+
124+
125+class hr_academic(orm.Model):
126+ _name = 'hr.academic'
127+ _columns = {
128+ 'name': fields.char('Name', size=64, required=True, translate=True),
129+ 'employee_id': fields.many2one('hr.employee', 'Employee', required=True),
130+ 'start_date': fields.date('Start date'),
131+ 'end_date': fields.date('End date'),
132+ 'description': fields.text('Description', translate=True),
133+ 'partner_id': fields.many2one('res.partner', 'School or University'),
134+ 'location': fields.char('Location', size=64, translate=True),
135+ 'diploma': fields.char('Diploma', size=64, translate=True),
136+ 'study_field': fields.char('Field of study', size=64, translate=True),
137+ 'activities': fields.text('Activities and associations', translate=True),
138+ 'expire': fields.boolean('Expire'),
139+ }
140+
141+ _defaults = {
142+ 'expire': True,
143+ }
144+
145+
146+class hr_employee(orm.Model):
147+ _inherit = 'hr.employee'
148+ _columns = {
149+ 'academic_ids': fields.one2many('hr.academic', 'employee_id', 'Academic experiences'),
150+ }
151+
152+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
153
154=== added file 'hr_experience/hr_academic_view.xml'
155--- hr_experience/hr_academic_view.xml 1970-01-01 00:00:00 +0000
156+++ hr_experience/hr_academic_view.xml 2014-04-21 15:39:45 +0000
157@@ -0,0 +1,61 @@
158+<openerp>
159+ <data>
160+
161+ <!-- academic tree-->
162+ <record model="ir.ui.view" id="view_academic_tree">
163+ <field name="name">hr.academic.tree</field>
164+ <field name="model">hr.academic</field>
165+ <field name="type">tree</field>
166+ <field name="arch" type="xml">
167+ <tree string="Academic experiences">
168+ <field name="name"/>
169+ <field name="employee_id"/>
170+ <field name="partner_id"/>
171+ <field name="start_date"/>
172+ <field name="end_date"/>
173+ </tree>
174+ </field>
175+ </record>
176+
177+ <!-- academic form-->
178+ <record model="ir.ui.view" id="view_academic_form">
179+ <field name="name">hr.academic.form</field>
180+ <field name="model">hr.academic</field>
181+ <field name="type">form</field>
182+ <field name="arch" type="xml">
183+ <form string="Academic experience">
184+ <field name="name"/>
185+ <field name="employee_id"/>
186+ <separator string="Dates" colspan="4"/>
187+ <field name="start_date"/>
188+ <field name="expire"/>
189+ <field name="end_date" attrs="{'invisible':[('expire', '=', False)]}"/>
190+ <separator string="Partner information" colspan="4"/>
191+ <field name="partner_id"/>
192+ <field name="location"/>
193+ <group colspan="4">
194+ <separator string="Academic information" colspan="4"/>
195+ <field name="diploma" />
196+ <field name="study_field"/>
197+ <field name="activities"/>
198+ </group>
199+ <separator string="Description" colspan="4"/>
200+ <field name="description" colspan="4" nolabel="1"/>
201+ </form>
202+ </field>
203+ </record>
204+
205+ <!-- Menu -->
206+ <record model="ir.actions.act_window" id="open_view_academic_form">
207+ <field name="res_model">hr.academic</field>
208+ <field name="view_type">form</field>
209+ <field name="view_mode">tree,form</field>
210+ </record>
211+
212+ <menuitem name="Academic Experiences"
213+ parent="hr.menu_hr_configuration"
214+ id="menu_open_view_academic_form"
215+ action="open_view_academic_form"/>
216+
217+ </data>
218+</openerp>
219
220=== added file 'hr_experience/hr_certification.py'
221--- hr_experience/hr_certification.py 1970-01-01 00:00:00 +0000
222+++ hr_experience/hr_certification.py 2014-04-21 15:39:45 +0000
223@@ -0,0 +1,50 @@
224+# -*- encoding: utf-8 -*-
225+###############################################################################
226+#
227+# OpenERP, Open Source Management Solution
228+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
229+#
230+# This program is free software: you can redistribute it and/or modify
231+# it under the terms of the GNU Affero General Public License as
232+# published by the Free Software Foundation, either version 3 of the
233+# License, or (at your option) any later version.
234+#
235+# This program is distributed in the hope that it will be useful,
236+# but WITHOUT ANY WARRANTY; without even the implied warranty of
237+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
238+# GNU Affero General Public License for more details.
239+#
240+# You should have received a copy of the GNU Affero General Public License
241+# along with this program. If not, see <http://www.gnu.org/licenses/>.
242+#
243+###############################################################################
244+
245+from openerp.osv import fields, orm
246+
247+
248+class hr_certification(orm.Model):
249+ _name = 'hr.certification'
250+ _columns = {
251+ 'name': fields.char('Name', size=64, required=True, translate=True),
252+ 'employee_id': fields.many2one('hr.employee', 'Employee', required=True),
253+ 'start_date': fields.date('Start date'),
254+ 'end_date': fields.date('End date'),
255+ 'description': fields.text('Description', translate=True),
256+ 'partner_id': fields.many2one('res.partner', 'Certification Authority'),
257+ 'location': fields.char('Location', size=64, translate=True),
258+ 'certification': fields.char('Certification Number', size=64),
259+ 'expire': fields.boolean('Expire'),
260+ }
261+
262+ _defaults = {
263+ 'expire': True,
264+ }
265+
266+
267+class hr_employee(orm.Model):
268+ _inherit = 'hr.employee'
269+ _columns = {
270+ 'certification_ids': fields.one2many('hr.certification', 'employee_id', 'Certifications'),
271+ }
272+
273+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
274
275=== added file 'hr_experience/hr_certification_view.xml'
276--- hr_experience/hr_certification_view.xml 1970-01-01 00:00:00 +0000
277+++ hr_experience/hr_certification_view.xml 2014-04-21 15:39:45 +0000
278@@ -0,0 +1,59 @@
279+<openerp>
280+ <data>
281+
282+ <!-- certification tree -->
283+ <record model="ir.ui.view" id="view_certification_tree">
284+ <field name="name">hr.certification.tree</field>
285+ <field name="model">hr.certification</field>
286+ <field name="type">tree</field>
287+ <field name="arch" type="xml">
288+ <tree string="certifications">
289+ <field name="name"/>
290+ <field name="employee_id"/>
291+ <field name="partner_id"/>
292+ <field name="start_date"/>
293+ <field name="end_date"/>
294+ </tree>
295+ </field>
296+ </record>
297+
298+ <!-- certification tree -->
299+ <record model="ir.ui.view" id="view_certification_form">
300+ <field name="name">hr.certification.form</field>
301+ <field name="model">hr.certification</field>
302+ <field name="type">form</field>
303+ <field name="arch" type="xml">
304+ <form string="Certification">
305+ <field name="name"/>
306+ <field name="employee_id"/>
307+ <separator string="Dates" colspan="4"/>
308+ <field name="start_date"/>
309+ <field name="expire"/>
310+ <field name="end_date" attrs="{'invisible':[('expire', '=', False)]}"/>
311+ <separator string="Partner information" colspan="4"/>
312+ <field name="partner_id"/>
313+ <field name="location"/>
314+ <group colspan="4">
315+ <separator string="Certification information" colspan="4"/>
316+ <field name="certification"/>
317+ </group>
318+ <separator string="Description" colspan="4"/>
319+ <field name="description" colspan="4" nolabel="1"/>
320+ </form>
321+ </field>
322+ </record>
323+
324+ <!-- Menu -->
325+ <record model="ir.actions.act_window" id="open_view_certification_form">
326+ <field name="res_model">hr.certification</field>
327+ <field name="view_type">form</field>
328+ <field name="view_mode">tree,form</field>
329+ </record>
330+
331+ <menuitem name="Certifications"
332+ parent="hr.menu_hr_configuration"
333+ id="menu_open_view_certification_form"
334+ action="open_view_certification_form"/>
335+
336+ </data>
337+</openerp>
338
339=== added file 'hr_experience/hr_experience_view.xml'
340--- hr_experience/hr_experience_view.xml 1970-01-01 00:00:00 +0000
341+++ hr_experience/hr_experience_view.xml 2014-04-21 15:39:45 +0000
342@@ -0,0 +1,24 @@
343+<openerp>
344+ <data>
345+ <!-- inheritEmployee -->
346+ <record model="ir.ui.view" id="view_employee_form_inherit">
347+ <field name="name">hr.experience.employee.form</field>
348+ <field name="model">hr.employee</field>
349+ <field name="inherit_id" ref="hr.view_employee_form"/>
350+ <field name="type">form</field>
351+ <field name="arch" type="xml">
352+ <notebook position="inside">
353+ <page string="Academic">
354+ <field name="academic_ids" nolabel="1" colspan="4"/>
355+ </page>
356+ <page string="Professional">
357+ <field name="professional_ids" nolabel="1" colspan="4"/>
358+ </page>
359+ <page string="Certification">
360+ <field name="certification_ids" nolabel="1" colspan="4"/>
361+ </page>
362+ </notebook>
363+ </field>
364+ </record>
365+ </data>
366+</openerp>
367
368=== added file 'hr_experience/hr_professional.py'
369--- hr_experience/hr_professional.py 1970-01-01 00:00:00 +0000
370+++ hr_experience/hr_professional.py 2014-04-21 15:39:45 +0000
371@@ -0,0 +1,49 @@
372+# -*- encoding: utf-8 -*-
373+###############################################################################
374+#
375+# OpenERP, Open Source Management Solution
376+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
377+#
378+# This program is free software: you can redistribute it and/or modify
379+# it under the terms of the GNU Affero General Public License as
380+# published by the Free Software Foundation, either version 3 of the
381+# License, or (at your option) any later version.
382+#
383+# This program is distributed in the hope that it will be useful,
384+# but WITHOUT ANY WARRANTY; without even the implied warranty of
385+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
386+# GNU Affero General Public License for more details.
387+#
388+# You should have received a copy of the GNU Affero General Public License
389+# along with this program. If not, see <http://www.gnu.org/licenses/>.
390+#
391+###############################################################################
392+
393+from openerp.osv import fields, orm
394+
395+
396+class hr_professional(orm.Model):
397+ _name = 'hr.professional'
398+ _columns = {
399+ 'name': fields.char('Name', size=64, required=True, translate=True),
400+ 'employee_id': fields.many2one('hr.employee', 'Employee', required=True),
401+ 'start_date': fields.date('Start date'),
402+ 'end_date': fields.date('End date'),
403+ 'description': fields.text('Description', translate=True),
404+ 'partner_id': fields.many2one('res.partner', 'Employer'),
405+ 'location': fields.char('Location', size=64, translate=True),
406+ 'expire': fields.boolean('Expire'),
407+ }
408+
409+ _defaults = {
410+ 'expire': True,
411+ }
412+
413+
414+class hr_employee(orm.Model):
415+ _inherit = 'hr.employee'
416+ _columns = {
417+ 'professional_ids': fields.one2many('hr.professional', 'employee_id', ' Professional Experiences'),
418+ }
419+
420+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
421
422=== added file 'hr_experience/hr_professional_view.xml'
423--- hr_experience/hr_professional_view.xml 1970-01-01 00:00:00 +0000
424+++ hr_experience/hr_professional_view.xml 2014-04-21 15:39:45 +0000
425@@ -0,0 +1,55 @@
426+<openerp>
427+ <data>
428+
429+ <!-- professional tree -->
430+ <record model="ir.ui.view" id="view_professional_tree">
431+ <field name="name">hr.professional.tree</field>
432+ <field name="model">hr.professional</field>
433+ <field name="type">tree</field>
434+ <field name="arch" type="xml">
435+ <tree string="Professional Experiences">
436+ <field name="name"/>
437+ <field name="employee_id"/>
438+ <field name="partner_id"/>
439+ <field name="start_date"/>
440+ <field name="end_date"/>
441+ </tree>
442+ </field>
443+ </record>
444+
445+ <!-- professional form -->
446+ <record model="ir.ui.view" id="view_professional_form">
447+ <field name="name">hr.professional.form</field>
448+ <field name="model">hr.professional</field>
449+ <field name="type">form</field>
450+ <field name="arch" type="xml">
451+ <form string="Professional Experience">
452+ <field name="name"/>
453+ <field name="employee_id"/>
454+ <separator string="Dates" colspan="4"/>
455+ <field name="start_date"/>
456+ <field name="expire"/>
457+ <field name="end_date" attrs="{'invisible':[('expire', '=', False)]}"/>
458+ <separator string="Partner information" colspan="4"/>
459+ <field name="partner_id"/>
460+ <field name="location"/>
461+ <separator string="Description" colspan="4"/>
462+ <field name="description" colspan="4" nolabel="1"/>
463+ </form>
464+ </field>
465+ </record>
466+
467+ <!-- Menu -->
468+ <record model="ir.actions.act_window" id="open_view_professional_form">
469+ <field name="res_model">hr.professional</field>
470+ <field name="view_type">form</field>
471+ <field name="view_mode">tree,form</field>
472+ </record>
473+
474+ <menuitem name="Professional Experiences"
475+ parent="hr.menu_hr_configuration"
476+ id="menu_open_view_professional_form"
477+ action="open_view_professional_form"/>
478+
479+ </data>
480+</openerp>
481
482=== added directory 'hr_experience/i18n'
483=== added file 'hr_experience/i18n/hr_experience.pot'
484--- hr_experience/i18n/hr_experience.pot 1970-01-01 00:00:00 +0000
485+++ hr_experience/i18n/hr_experience.pot 2014-04-21 15:39:45 +0000
486@@ -0,0 +1,208 @@
487+# Translation of OpenERP Server.
488+# This file contains the translation of the following modules:
489+# * hr_experience
490+#
491+msgid ""
492+msgstr ""
493+"Project-Id-Version: OpenERP Server 6.1\n"
494+"Report-Msgid-Bugs-To: \n"
495+"POT-Creation-Date: 2013-12-31 21:26+0000\n"
496+"PO-Revision-Date: 2013-12-31 21:26+0000\n"
497+"Last-Translator: <>\n"
498+"Language-Team: \n"
499+"MIME-Version: 1.0\n"
500+"Content-Type: text/plain; charset=UTF-8\n"
501+"Content-Transfer-Encoding: \n"
502+"Plural-Forms: \n"
503+
504+#. module: hr_experience
505+#: field:hr.certification,certification:0
506+msgid "Certification Number"
507+msgstr ""
508+
509+#. module: hr_experience
510+#: field:hr.professional,partner_id:0
511+msgid "Employer"
512+msgstr ""
513+
514+#. module: hr_experience
515+#: view:hr.academic:0
516+#: view:hr.certification:0
517+#: view:hr.professional:0
518+msgid "Partner information"
519+msgstr ""
520+
521+#. module: hr_experience
522+#: field:hr.academic,location:0
523+#: field:hr.certification,location:0
524+#: field:hr.professional,location:0
525+msgid "Location"
526+msgstr ""
527+
528+#. module: hr_experience
529+#: field:hr.academic,employee_id:0
530+#: field:hr.certification,employee_id:0
531+#: field:hr.professional,employee_id:0
532+#: model:ir.model,name:hr_experience.model_hr_employee
533+msgid "Employee"
534+msgstr ""
535+
536+#. module: hr_experience
537+#: field:hr.academic,start_date:0
538+#: field:hr.certification,start_date:0
539+#: field:hr.professional,start_date:0
540+msgid "Start date"
541+msgstr ""
542+
543+#. module: hr_experience
544+#: field:hr.academic,activities:0
545+msgid "Activities and associations"
546+msgstr ""
547+
548+#. module: hr_experience
549+#: view:hr.academic:0
550+#: field:hr.academic,description:0
551+#: view:hr.certification:0
552+#: field:hr.certification,description:0
553+#: view:hr.professional:0
554+#: field:hr.professional,description:0
555+msgid "Description"
556+msgstr ""
557+
558+#. module: hr_experience
559+#: field:hr.academic,study_field:0
560+msgid "Field of study"
561+msgstr ""
562+
563+#. module: hr_experience
564+#: model:ir.ui.menu,name:hr_experience.menu_open_view_academic_form
565+msgid "Academic Experiences"
566+msgstr ""
567+
568+#. module: hr_experience
569+#: view:hr.certification:0
570+msgid "Certification information"
571+msgstr ""
572+
573+#. module: hr_experience
574+#: field:hr.academic,expire:0
575+#: field:hr.certification,expire:0
576+#: field:hr.professional,expire:0
577+msgid "Expire"
578+msgstr ""
579+
580+#. module: hr_experience
581+#: field:hr.academic,partner_id:0
582+msgid "School or University"
583+msgstr ""
584+
585+#. module: hr_experience
586+#: view:hr.professional:0
587+msgid "Professional Experience"
588+msgstr ""
589+
590+#. module: hr_experience
591+#: constraint:hr.employee:0
592+msgid "Error ! You cannot create recursive Hierarchy of Employees."
593+msgstr ""
594+
595+#. module: hr_experience
596+#: view:hr.academic:0
597+msgid "Academic information"
598+msgstr ""
599+
600+#. module: hr_experience
601+#: view:hr.academic:0
602+#: view:hr.certification:0
603+#: view:hr.professional:0
604+msgid "Dates"
605+msgstr ""
606+
607+#. module: hr_experience
608+#: field:hr.employee,certification_ids:0
609+#: model:ir.ui.menu,name:hr_experience.menu_open_view_certification_form
610+msgid "Certifications"
611+msgstr ""
612+
613+#. module: hr_experience
614+#: field:hr.academic,name:0
615+#: field:hr.certification,name:0
616+#: field:hr.professional,name:0
617+msgid "Name"
618+msgstr ""
619+
620+#. module: hr_experience
621+#: view:hr.academic:0
622+#: field:hr.employee,academic_ids:0
623+msgid "Academic experiences"
624+msgstr ""
625+
626+#. module: hr_experience
627+#: field:hr.employee,professional_ids:0
628+msgid " Professional Experiences"
629+msgstr ""
630+
631+#. module: hr_experience
632+#: view:hr.employee:0
633+msgid "Academic"
634+msgstr ""
635+
636+#. module: hr_experience
637+#: view:hr.certification:0
638+msgid "certifications"
639+msgstr ""
640+
641+#. module: hr_experience
642+#: field:hr.certification,partner_id:0
643+msgid "Certification Authority"
644+msgstr ""
645+
646+#. module: hr_experience
647+#: view:hr.employee:0
648+msgid "Professional"
649+msgstr ""
650+
651+#. module: hr_experience
652+#: view:hr.academic:0
653+msgid "Academic experience"
654+msgstr ""
655+
656+#. module: hr_experience
657+#: field:hr.academic,end_date:0
658+#: field:hr.certification,end_date:0
659+#: field:hr.professional,end_date:0
660+msgid "End date"
661+msgstr ""
662+
663+#. module: hr_experience
664+#: model:ir.model,name:hr_experience.model_hr_academic
665+msgid "hr.academic"
666+msgstr ""
667+
668+#. module: hr_experience
669+#: field:hr.academic,diploma:0
670+msgid "Diploma"
671+msgstr ""
672+
673+#. module: hr_experience
674+#: view:hr.certification:0
675+#: view:hr.employee:0
676+msgid "Certification"
677+msgstr ""
678+
679+#. module: hr_experience
680+#: model:ir.model,name:hr_experience.model_hr_certification
681+msgid "hr.certification"
682+msgstr ""
683+
684+#. module: hr_experience
685+#: model:ir.model,name:hr_experience.model_hr_professional
686+msgid "hr.professional"
687+msgstr ""
688+
689+#. module: hr_experience
690+#: view:hr.professional:0
691+#: model:ir.ui.menu,name:hr_experience.menu_open_view_professional_form
692+msgid "Professional Experiences"
693+msgstr ""
694+
695
696=== added directory 'hr_experience/security'
697=== added file 'hr_experience/security/hr_experience_security.xml'
698--- hr_experience/security/hr_experience_security.xml 1970-01-01 00:00:00 +0000
699+++ hr_experience/security/hr_experience_security.xml 2014-04-21 15:39:45 +0000
700@@ -0,0 +1,62 @@
701+<?xml version="1.0" encoding="utf-8"?>
702+<openerp>
703+ <data noupdate="1">
704+
705+ <!-- Employee rules -->
706+ <record id="hr_academic_employee_rule" model="ir.rule">
707+ <field name="name">Personal academic experiences</field>
708+ <field name="model_id" ref="hr.model_hr_academic"/>
709+ <field name="domain_force">[('employee_id.user_id.id', '=', user.id)]</field>
710+ <field name="groups" eval="[(4, ref('base.group_user'))]"/>
711+ <field name="perm_read">False</field>
712+ <field name="perm_create">True</field>
713+ <field name="perm_write">True</field>
714+ <field name="perm_unlink">True</field>
715+ </record>
716+
717+ <record id="hr_professional_employee_rule" model="ir.rule">
718+ <field name="name">Personal professional experiences</field>
719+ <field name="model_id" ref="hr.model_hr_professional"/>
720+ <field name="domain_force">[('employee_id.user_id.id', '=', user.id)]</field>
721+ <field name="groups" eval="[(4, ref('base.group_user'))]"/>
722+ <field name="perm_read">False</field>
723+ <field name="perm_create">True</field>
724+ <field name="perm_write">True</field>
725+ <field name="perm_unlink">True</field>
726+ </record>
727+
728+ <record id="hr_certification_employee_rule" model="ir.rule">
729+ <field name="name">Personal certifications</field>
730+ <field name="model_id" ref="model_hr_certification"/>
731+ <field name="domain_force">[('employee_id.user_id.id', '=', user.id)]</field>
732+ <field name="groups" eval="[(4, ref('base.group_user'))]"/>
733+ <field name="perm_read">False</field>
734+ <field name="perm_create">True</field>
735+ <field name="perm_write">True</field>
736+ <field name="perm_unlink">True</field>
737+ </record>
738+
739+ <!-- HR User rules -->
740+ <record id="hr_academic_hruser_rule" model="ir.rule">
741+ <field name="name">All academic experiences</field>
742+ <field name="model_id" ref="hr.model_hr_academic"/>
743+ <field name="domain_force">[(1, '=', 1)]</field>
744+ <field name="groups" eval="[(4, ref('base.group_hr_user'))]"/>
745+ </record>
746+
747+ <record id="hr_professional_hruser_rule" model="ir.rule">
748+ <field name="name">All professional experiences</field>
749+ <field name="model_id" ref="hr.model_hr_professional"/>
750+ <field name="domain_force">[(1, '=', 1)]</field>
751+ <field name="groups" eval="[(4, ref('base.group_hr_user'))]"/>
752+ </record>
753+
754+ <record id="hr_certification_hruser_rule" model="ir.rule">
755+ <field name="name">All certifications</field>
756+ <field name="model_id" ref="model_hr_certification"/>
757+ <field name="domain_force">[(1, '=', 1)]</field>
758+ <field name="groups" eval="[(4, ref('base.group_hr_user'))]"/>
759+ </record>
760+
761+ </data>
762+</openerp>
763
764=== added file 'hr_experience/security/ir.model.access.csv'
765--- hr_experience/security/ir.model.access.csv 1970-01-01 00:00:00 +0000
766+++ hr_experience/security/ir.model.access.csv 2014-04-21 15:39:45 +0000
767@@ -0,0 +1,4 @@
768+"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
769+"access_hr_academic","hr.academic","model_hr_academic",base.group_hr_user,1,1,1,1
770+"access_hr_professional","hr.professional","model_hr_professional",base.group_hr_user,1,1,1,1
771+"access_hr_certification","hr.certification","model_hr_certification",base.group_hr_user,1,1,1,1

Subscribers

People subscribed via source and target branches