eh.dem has proposed merging lp:~savoirfairelinux-openerp/openerp-hr/experience into lp:openerp-hr/6.1.
Requested reviews: HR Core Editors (hr-core-editors) For more details, see: https://code.launchpad.net/~savoirfairelinux-openerp/openerp-hr/experience/+merge/194926 [ADD] add hr_experience module.It adds a new menu in hr module and inherits the res.partner view form -- https://code.launchpad.net/~savoirfairelinux-openerp/openerp-hr/experience/+merge/194926 Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/openerp-hr/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-12 19:51:08 +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/>. +# +############################################################################### +from . 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-12 19:51:08 +0000 @@ -0,0 +1,42 @@ +# -*- 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/>. +# +############################################################################### + +{ + "name": "Experience Management", + "version": "0.1", + "author": "Savoir-faire Linux", + "category": "Human Resources", + "website": "http://www.savoirfairelinux.com", + "depends": ["hr"], + "description": """ +This module allows you to manage your employee experiences: +* Professional +* Academic +* Certification + """, + "update_xml": [ + "security/ir.model.access.csv", + "hr_experience_view.xml", + ], + "active": False, + "installable": True +} +# 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-12 19:51:08 +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 osv import osv, fields + + +class hr_experience(osv.osv): + _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(osv.osv): + _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-12 19:51:08 +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 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-12 19:51:08 +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

