← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~savoirfairelinux-openerp/openerp-hr/7.0-resume into lp:openerp-hr

 

elhadji.dem@xxxxxxxxxxxxxxxxxxxx has proposed merging lp:~savoirfairelinux-openerp/openerp-hr/7.0-resume into lp:openerp-hr.

Requested reviews:
  HR Core Editors (hr-core-editors)

For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-hr/7.0-resume/+merge/195303

[ADD] adds hr_resume module
-- 
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-hr/7.0-resume/+merge/195303
Your team HR Core Editors is requested to review the proposed merge of lp:~savoirfairelinux-openerp/openerp-hr/7.0-resume into lp:openerp-hr.
=== added directory 'hr_resume'
=== added file 'hr_resume/__init__.py'
--- hr_resume/__init__.py	1970-01-01 00:00:00 +0000
+++ hr_resume/__init__.py	2013-11-14 20:26:16 +0000
@@ -0,0 +1,22 @@
+# -*- encoding: utf-8 -*-
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2013 Savoir-faire Linux
+#    (<http://www.savoirfairelinux.com>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+import hr_resume
+import report
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added file 'hr_resume/__openerp__.py'
--- hr_resume/__openerp__.py	1970-01-01 00:00:00 +0000
+++ hr_resume/__openerp__.py	2013-11-14 20:26:16 +0000
@@ -0,0 +1,45 @@
+# -*- encoding: utf-8 -*-
+#
+#    OpenERP, Open Source Management Solution
+#    This module copyright (C) 2013 Savoir-faire Linux
+#    (<http://www.savoirfairelinux.com>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+{
+    "name": "Resume Management",
+    "version": "0.1",
+    "category": "Human Resources",
+    "license": "AGPL-3",
+    "description": """
+    This module allows you to manage your employee resumes.
+    """,
+    "author": "Savoir-faire Linux",
+    "website": "http://www.savoirfairelinux.com";,
+    "depends": [
+        "hr_experience",
+        "hr_skill",
+        "hr_language",
+        ],
+    'data': ['hr_resume_view.xml',
+             'report/report_resume.xml',
+             ],
+    "demo": [],
+    "test": [],
+    "installable": True,
+    "auto_install": False,
+    "images": [],
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added file 'hr_resume/hr_resume.py'
--- hr_resume/hr_resume.py	1970-01-01 00:00:00 +0000
+++ hr_resume/hr_resume.py	2013-11-14 20:26:16 +0000
@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+###############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+###############################################################################
+from openerp.osv import fields, orm
+
+
+class hr_employee(orm.Model):
+    _inherit = 'hr.employee'
+    _columns = {
+        'biography': fields.text('Biography'),
+    }
+hr_employee()
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added file 'hr_resume/hr_resume_view.xml'
--- hr_resume/hr_resume_view.xml	1970-01-01 00:00:00 +0000
+++ hr_resume/hr_resume_view.xml	2013-11-14 20:26:16 +0000
@@ -0,0 +1,18 @@
+<openerp>
+  <data>
+    <!-- Employee -->
+    <record model="ir.ui.view" id="view_employee_form">
+        <field name="name">hr.resume.employee.form</field>
+        <field name="model">hr.employee</field>
+        <field name="inherit_id" ref="hr.view_employee_form"/>
+        <field name="type">form</field>
+        <field name="arch" type="xml">
+            <notebook position="inside">
+                <page string="Biography">
+                    <field name="biography" nolabel="1" colspan="4"/>
+                </page>
+            </notebook>
+        </field>
+    </record>
+  </data>
+</openerp>

=== added directory 'hr_resume/i18n'
=== added file 'hr_resume/i18n/fr.po'
--- hr_resume/i18n/fr.po	1970-01-01 00:00:00 +0000
+++ hr_resume/i18n/fr.po	2013-11-14 20:26:16 +0000
@@ -0,0 +1,79 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+#	* hr_resume
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-11-11 20:53+0000\n"
+"PO-Revision-Date: 2013-11-11 20:53+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: hr_resume
+#: report:hr.resume.report:0
+msgid "Certifications"
+msgstr "Certifications"
+
+#. module: hr_resume
+#: report:hr.resume.report:0
+msgid "Resume"
+msgstr "CV"
+
+#. module: hr_resume
+#: report:hr.resume.report:0
+msgid "Academic Background"
+msgstr "Formation académique"
+
+#. module: hr_resume
+#: report:hr.resume.report:0
+msgid "Professional Experiences"
+msgstr "Expériences professionnelles"
+
+#. module: hr_resume
+#: report:hr.resume.report:0
+msgid "Diploma:"
+msgstr "Diplôme:"
+
+#. module: hr_resume
+#: report:hr.resume.report:0
+msgid "Field of Study:"
+msgstr "Domaine d'études:"
+
+#. module: hr_resume
+#: report:hr.resume.report:0
+msgid "Languages"
+msgstr "Langages"
+
+#. module: hr_resume
+#: model:ir.model,name:hr_resume.model_hr_employee
+msgid "Employee"
+msgstr "Employé"
+
+#. module: hr_resume
+#: model:ir.actions.report.xml,name:hr_resume.hr_resume_report
+msgid "Print Resume"
+msgstr "Imprimer CV"
+
+#. module: hr_resume
+#: report:hr.resume.report:0
+msgid "Skills"
+msgstr "Compétences"
+
+#. module: hr_resume
+#: report:hr.resume.report:0
+msgid "Certification Number:"
+msgstr "Numéro de certification:"
+
+#. module: hr_resume
+#: view:hr.employee:0
+#: field:hr.employee,biography:0
+#: report:hr.resume.report:0
+msgid "Biography"
+msgstr "Biographie"
+

=== added directory 'hr_resume/report'
=== added file 'hr_resume/report/__init__.py'
--- hr_resume/report/__init__.py	1970-01-01 00:00:00 +0000
+++ hr_resume/report/__init__.py	2013-11-14 20:26:16 +0000
@@ -0,0 +1,22 @@
+# -*- encoding: utf-8 -*-
+###############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+###############################################################################
+import report_resume
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added file 'hr_resume/report/report_resume.py'
--- hr_resume/report/report_resume.py	1970-01-01 00:00:00 +0000
+++ hr_resume/report/report_resume.py	2013-11-14 20:26:16 +0000
@@ -0,0 +1,49 @@
+# -*- encoding: utf-8 -*-
+###############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+###############################################################################
+import time
+from report import report_sxw
+
+
+class report_resume(report_sxw.rml_parse):
+
+    def __init__(self, cr, uid, name, context):
+        super(report_resume, self).__init__(cr, uid, name, context)
+        self.localcontext.update({
+            'time': time,
+            'get_experience_by_category': self.get_experience_by_category,
+        })
+
+    def get_experience_by_category(self, employee_id, category):
+        self.cr.execute("SELECT exp.name, exp.start_date, exp.expire, exp.end_date, exp.location, exp.certification, \
+                        exp.description, exp.diploma, exp.study_field, part.name partner_name FROM hr_experience exp \
+                        LEFT JOIN res_partner part ON part.id = exp.partner_id \
+                        WHERE exp.employee_id = %d AND exp.category = '%s'"%(employee_id, category))
+        return self.cr.dictfetchall()
+
+report_sxw.report_sxw(
+    'report.hr.resume.report',
+    'hr.employee',
+    'addons/hr_resume/report/report_resume.rml',
+    parser=report_resume,
+    header=False
+)
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

=== added file 'hr_resume/report/report_resume.rml'
--- hr_resume/report/report_resume.rml	1970-01-01 00:00:00 +0000
+++ hr_resume/report/report_resume.rml	2013-11-14 20:26:16 +0000
@@ -0,0 +1,99 @@
+<?xml version="1.0"?>
+<document filename="Resume.pdf">
+  <template pageSize="(595.0,842.0)" title="Resume" author="Savoir-faire Linux" allowSplitting="20">
+    <pageTemplate id="first">
+      <frame id="first" x1="15.0" y1="42.0" width="539" height="758"/>
+    </pageTemplate>
+  </template>
+  <stylesheet>
+    <blockTableStyle id="Standard_Outline">
+      <blockAlignment value="LEFT"/>
+      <blockValign value="TOP"/>
+    </blockTableStyle>
+    <initialize>
+      <paraStyle name="all" alignment="justify"/>
+    </initialize>
+    <paraStyle name="Standard" fontName="Helvetica"/>
+    <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
+    <paraStyle name="Heading" fontName="Helvetica" fontSize="8.0" leading="10" spaceBefore="12.0" spaceAfter="6.0"/>
+    <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
+    <paraStyle name="Table Contents" fontName="Helvetica"/>
+    <paraStyle name="Table Heading" fontName="Helvetica" alignment="CENTER"/>
+    <paraStyle name="Caption" fontName="Helvetica" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
+    <paraStyle name="Index" fontName="Helvetica"/>
+    <paraStyle name="terp_header" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>
+    <paraStyle name="terp_default_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_default_Bold_8" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_default_Bold_9" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_default_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_tblheader_General" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
+    <paraStyle name="terp_tblheader_General_Centre" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
+    <paraStyle name="terp_default_Centre_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_tblheader_Details" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
+    <paraStyle name="Footer" fontName="Helvetica"/>
+    <paraStyle name="Horizontal Line" fontName="Helvetica" fontSize="6.0" leading="8" spaceBefore="0.0" spaceAfter="14.0"/>
+    <paraStyle name="Heading 9" fontName="Helvetica-Bold" fontSize="75%" leading="NaN" spaceBefore="12.0" spaceAfter="6.0"/>
+    <paraStyle name="terp_tblheader_General_Right" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>
+    <paraStyle name="terp_tblheader_Details_Centre" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
+    <paraStyle name="terp_tblheader_Details_Right" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>
+    <paraStyle name="terp_default_Right_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_header_Right" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>
+    <paraStyle name="terp_header_Centre" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="CENTER" spaceBefore="12.0" spaceAfter="6.0"/>
+    <paraStyle name="terp_default_address" fontName="Helvetica" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_default_Centre_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_default_Right_9" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_default_1" fontName="Helvetica" fontSize="2.0" leading="3" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_default_Right_9_Bold" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
+    <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"/>
+    <paraStyle name="Preformatted Text" fontName="Helvetica" fontSize="10.0" leading="13" spaceBefore="0.0" spaceAfter="0.0"/>
+    <paraStyle name="terp_default_Centre_9_Bold" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
+    <images/>
+  </stylesheet>
+  <story>
+  <pto>
+    <para style="terp_default_8">[[repeatIn(objects,'o')]]</para>
+    <para style="terp_default_8">[[setLang(user.lang)]]</para>
+    <!--<image x="1.3cm" y="27.6cm" height="40.0" width="100" alignment="LEFT">[[ company.logo or removeParentNode('image') ]]</image>-->
+    <para style="terp_header_Centre">Resume</para>
+    <para style="terp_header_Centre">[[ o.name ]]</para>
+    <para style="terp_header_Centre">[[ o.job_id.name ]]</para>
+    <para style="terp_header">Biography</para>
+    <para>[[ o.biography ]]</para>
+    <para style="terp_header">Skills</para>
+    <section>
+      <para>[[repeatIn(o.skill_ids,'skill')]]</para>
+      <para>- [[ skill.name ]] </para>
+    </section>
+    <para style="terp_header">Certifications</para>
+    <section>
+      <para >[[ repeatIn(get_experience_by_category(o.id, 'certification'),'line') ]]</para>
+      <para style="terp_default_Bold_9">[[ line['name'] ]] , [[ line['partner_name'] ]]</para>
+      <para>[[ line['start_date'] ]] - [[ line['expire'] and line['end_date'] or 'Now' ]]</para>
+      <para>[[ line['location'] or removeParentNode('para') ]]</para>
+      <para>Certification Number: [[ line['certification'] or removeParentNode('para') ]]</para>
+    </section>
+    <para style="terp_header">Professional Experiences</para>
+    <section>
+      <para >[[ repeatIn(get_experience_by_category(o.id, 'professional'),'line') ]]</para>
+      <para style="terp_default_Bold_9">[[ line['name'] ]] [[  line['location'] or '' ]]</para>
+      <para>[[ line['start_date'] ]] - [[ line['expire'] and line['end_date'] or 'Now' ]]</para>
+      <para>[[ line['partner_name'] ]]</para>
+      <para>[[ line['description'] ]]</para>
+    </section>
+    <para style="terp_header">Academic Background</para>
+    <section>
+       <para >[[ repeatIn(get_experience_by_category(o.id, 'academic'),'line') ]]</para>
+      <para style="terp_default_Bold_9">[[ line['name'] ]]</para>
+      <para>[[ line['start_date'] ]] - [[ line['expire'] and line['end_date'] or 'Now' ]]</para>
+      <para>[[ line['partner_name'] ]]</para>
+      <para>Diploma: [[ line['diploma'] or removeParentNode('para') ]]</para>
+      <para>Field of Study: [[ line['study_field']  or removeParentNode('para') ]]</para>
+    </section>
+    <para style="terp_header">Languages</para>
+    <section>
+      <para>[[repeatIn(o.language_ids,'language')]]</para>
+      <para>- [[ language.description ]] : [[ language.read and 'Read' or '' ]], [[ language.write and 'Write' or '' ]], [[ language.speak and 'Speak' or '' ]]</para>
+    </section>
+  </pto>
+  </story>
+</document>

=== added file 'hr_resume/report/report_resume.xml'
--- hr_resume/report/report_resume.xml	1970-01-01 00:00:00 +0000
+++ hr_resume/report/report_resume.xml	2013-11-14 20:26:16 +0000
@@ -0,0 +1,14 @@
+<?xml version="1.0"?>
+<openerp>
+   <data>
+
+      <report id="hr_resume_report"
+         string="Print Resume" 
+         model="hr.employee"
+         name="hr.resume.report"
+         rml="hr_resume/report/report_resume.rml"
+         auto="False"
+         menu="True"/>
+
+   </data>
+</openerp>