[email protected] has proposed merging lp:~savoirfairelinux-openerp/openerp-hr/7.0-experience 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-experience/+merge/195301 [ADD] adds hr_experience module -- https://code.launchpad.net/~savoirfairelinux-openerp/openerp-hr/7.0-experience/+merge/195301 Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/openerp-hr/7.0-experience.
=== added directory 'hr_experience' === added file 'hr_experience/__init__.py' --- hr_experience/__init__.py 1970-01-01 00:00:00 +0000 +++ hr_experience/__init__.py 2013-11-14 20:25:27 +0000 @@ -0,0 +1,21 @@ +# -*- 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_experience +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'hr_experience/__openerp__.py' --- hr_experience/__openerp__.py 1970-01-01 00:00:00 +0000 +++ hr_experience/__openerp__.py 2013-11-14 20:25:27 +0000 @@ -0,0 +1,43 @@ +# -*- 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": "Experience Management", + "version": "0.1", + "category": "Human Resources", + "license": "AGPL-3", + "description": """ + This module allows you to manage your employee experiences: + * Professional + * Academic + * Certification + """, + "author": "Savoir-faire Linux", + "website": "http://www.savoirfairelinux.com", + "depends": ["hr"], + 'data': ["security/ir.model.access.csv", + "hr_experience_view.xml", + ], + "demo": [], + "test": [], + "installable": True, + "auto_install": False, + "images": [], +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'hr_experience/hr_experience.py' --- hr_experience/hr_experience.py 1970-01-01 00:00:00 +0000 +++ hr_experience/hr_experience.py 2013-11-14 20:25:27 +0000 @@ -0,0 +1,59 @@ +# -*- 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_experience(orm.Model): + _name = 'hr.experience' + _columns = { + 'name': fields.char('Name', size=64, required=True, translate=True), + 'employee_id': fields.many2one('hr.employee', 'Employee', required=True), + 'category': fields.selection((('professional', 'Professional'), + ('academic', 'Academic'), + ('certification', 'Certification')), + 'Category', required=True), + 'start_date': fields.date('Start date'), + 'end_date': fields.date('End date'), + 'description': fields.text('Description', translate=True), + 'partner_id': fields.many2one('res.partner', 'Partner', help="Employer, School, University, Certification Authority"), + 'location': fields.char('Location', size=64, translate=True), + 'diploma': fields.char('Diploma', size=64, translate=True), + 'study_field': fields.char('Field of study', size=64, translate=True), + 'result': fields.char('Result', size=64, translate=True), + 'activities': fields.text('Activities and associations', translate=True), + 'certification': fields.char('Certification Number', size=64), + 'expire': fields.boolean('Expire'), + } + + _defaults = { + 'category': 'professional', + 'expire': True, + } +hr_experience() + + +class hr_employee(orm.Model): + _inherit = 'hr.employee' + _columns = { + 'experience_ids': fields.one2many('hr.experience', 'employee_id', 'Experiences'), + } +hr_employee() +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'hr_experience/hr_experience_view.xml' --- hr_experience/hr_experience_view.xml 1970-01-01 00:00:00 +0000 +++ hr_experience/hr_experience_view.xml 2013-11-14 20:25:27 +0000 @@ -0,0 +1,82 @@ +<openerp> + <data> + + <!-- Employee --> + + <record model="ir.ui.view" id="view_employee_form"> + <field name="name">hr.experience.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="Experiences"> + <field name="experience_ids" nolabel="1" colspan="4"/> + </page> + </notebook> + </field> + </record> + + <!-- Experience --> + + <record model="ir.ui.view" id="view_experience_tree"> + <field name="name">hr.experience.tree</field> + <field name="model">hr.experience</field> + <field name="type">tree</field> + <field name="arch" type="xml"> + <tree string="Experiences"> + <field name="name"/> + <field name="employee_id"/> + <field name="category"/> + <field name="partner_id"/> + <field name="start_date"/> + <field name="end_date"/> + </tree> + </field> + </record> + + <record model="ir.ui.view" id="view_experience_form"> + <field name="name">hr.experience.form</field> + <field name="model">hr.experience</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Experience"> + <field name="name"/> + <field name="employee_id"/> + <field name="category"/> + <separator string="Dates" colspan="4"/> + <field name="start_date"/> + <field name="expire"/> + <field name="end_date" attrs="{'invisible':[('expire', '=', False)]}"/> + <separator string="Partner information" colspan="4"/> + <field name="partner_id"/> + <field name="location"/> + <group attrs="{'invisible':[('category', '!=', 'academic')]}" colspan="4"> + <separator string="Academic information" colspan="4"/> + <field name="diploma" attrs="{'invisible':[('category', '!=', 'academic')]}"/> + <field name="study_field" attrs="{'invisible':[('category', '!=', 'academic')]}"/> + <field name="activities" attrs="{'invisible':[('category', '!=', 'academic')]}"/> + </group> + <group attrs="{'invisible':[('category', '!=', 'certification')]}" colspan="4"> + <separator string="Certification information" colspan="4"/> + <field name="certification" attrs="{'invisible':[('category', '!=', 'certification')]}"/> + </group> + <separator string="Description" colspan="4"/> + <field name="description" colspan="4" nolabel="1"/> + </form> + </field> + </record> + + <record model="ir.actions.act_window" id="open_view_experience_form"> + <field name="res_model">hr.experience</field> + <field name="view_type">form</field> + <field name="view_mode">tree,form</field> + </record> + + <menuitem name="Experiences" + parent="hr.menu_hr_configuration" + id="menu_open_view_experience_form" + action="open_view_experience_form"/> + + </data> +</openerp> === added directory 'hr_experience/i18n' === added file 'hr_experience/i18n/fr.po' --- hr_experience/i18n/fr.po 1970-01-01 00:00:00 +0000 +++ hr_experience/i18n/fr.po 2013-11-14 20:25:27 +0000 @@ -0,0 +1,147 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * hr_experience +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2013-11-11 20:21+0000\n" +"PO-Revision-Date: 2013-11-11 20:21+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_experience +#: field:hr.experience,category:0 +msgid "Category" +msgstr "Catégorie" + +#. module: hr_experience +#: field:hr.experience,certification:0 +msgid "Certification Number" +msgstr "Numéro de certification" + +#. module: hr_experience +#: help:hr.experience,partner_id:0 +msgid "Employer, School, University, Certification Authority" +msgstr "Employeur, école, université, autorité de certification" + +#. module: hr_experience +#: field:hr.experience,diploma:0 +msgid "Diploma" +msgstr "Diplôme" + +#. module: hr_experience +#: view:hr.experience:0 +msgid "Partner information" +msgstr "Information partenaire" + +#. module: hr_experience +#: field:hr.experience,location:0 +msgid "Location" +msgstr "Lieu" + +#. module: hr_experience +#: field:hr.experience,employee_id:0 +#: model:ir.model,name:hr_experience.model_hr_employee +msgid "Employee" +msgstr "Employé" + +#. module: hr_experience +#: field:hr.experience,start_date:0 +msgid "Start date" +msgstr "Date de début" + +#. module: hr_experience +#: field:hr.experience,activities:0 +msgid "Activities and associations" +msgstr "Activités et associations" + +#. module: hr_experience +#: view:hr.experience:0 +#: field:hr.experience,description:0 +msgid "Description" +msgstr "Description" + +#. module: hr_experience +#: field:hr.experience,study_field:0 +msgid "Field of study" +msgstr "Domaine d'études" + +#. module: hr_experience +#: view:hr.experience:0 +msgid "Certification information" +msgstr "Informations sur la certification" + +#. module: hr_experience +#: field:hr.experience,expire:0 +msgid "Expire" +msgstr "Expire" + +#. module: hr_experience +#: view:hr.employee:0 +#: field:hr.employee,experience_ids:0 +#: view:hr.experience:0 +#: model:ir.ui.menu,name:hr_experience.menu_open_view_experience_form +msgid "Experiences" +msgstr "Experiences" + +#. module: hr_experience +#: model:ir.model,name:hr_experience.model_hr_experience +msgid "hr.experience" +msgstr "hr.experience" + +#. module: hr_experience +#: view:hr.experience:0 +msgid "Academic information" +msgstr "Information académique" + +#. module: hr_experience +#: view:hr.experience:0 +msgid "Dates" +msgstr "Dates" + +#. module: hr_experience +#: field:hr.experience,name:0 +msgid "Name" +msgstr "Nom" + +#. module: hr_experience +#: view:hr.experience:0 +msgid "Experience" +msgstr "Expérience" + +#. module: hr_experience +#: selection:hr.experience,category:0 +msgid "Academic" +msgstr "Académique" + +#. module: hr_experience +#: selection:hr.experience,category:0 +msgid "Professional" +msgstr "Professional" + +#. module: hr_experience +#: field:hr.experience,end_date:0 +msgid "End date" +msgstr "Date fin" + +#. module: hr_experience +#: selection:hr.experience,category:0 +msgid "Certification" +msgstr "Certification" + +#. module: hr_experience +#: field:hr.experience,result:0 +msgid "Result" +msgstr "Résultat" + +#. module: hr_experience +#: field:hr.experience,partner_id:0 +msgid "Partner" +msgstr "Partenaire" + === added directory 'hr_experience/security' === added file 'hr_experience/security/ir.model.access.csv' --- hr_experience/security/ir.model.access.csv 1970-01-01 00:00:00 +0000 +++ hr_experience/security/ir.model.access.csv 2013-11-14 20:25:27 +0000 @@ -0,0 +1,2 @@ +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" +"access_hr_experience","hr.experience","model_hr_experience",base.group_hr_user,1,1,1,1
-- Mailing list: https://launchpad.net/~savoirfairelinux-openerp Post to : [email protected] Unsubscribe : https://launchpad.net/~savoirfairelinux-openerp More help : https://help.launchpad.net/ListHelp

