diff --git a/hr_experience_analytic/__init__.py b/hr_experience_analytic/__init__.py new file mode 100644 index 00000000000..2d633330276 --- /dev/null +++ b/hr_experience_analytic/__init__.py @@ -0,0 +1,21 @@ +# -*- encoding: utf-8 -*- +############################################################################### +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2013 Savoir-faire Linux (). +# +# 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 . +# +############################################################################### +from . import hr_experience_analytic diff --git a/hr_experience_analytic/__openerp__.py b/hr_experience_analytic/__openerp__.py new file mode 100644 index 00000000000..d89da10a252 --- /dev/null +++ b/hr_experience_analytic/__openerp__.py @@ -0,0 +1,54 @@ +############################################################################### +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2013 Savoir-faire Linux (). +# +# 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 . +# +############################################################################### + +{ + "name": "Experience and Analytic Accounting", + "version": "0.1", + "author": "Savoir-faire Linux", + "category": "Human Resources", + "website": "http://www.savoirfairelinux.com", + "depends": [ + "hr_experience", + "account", + ], + "description": """ +This module allows you to link your employee experiences with projects +or contracts. + +This is useful if you want to have the same project description and metrics on +all the resumes of the employees involved in the same project or contract. + +Configuration +============= + +Make sure to add users to the "Analytic Accounting" group to show the analytic +account on the profesionnal experience form. + +Contributors +============ + +* Savoir-faire Linux +* Maxime Chambreuil + """, + "data": [ + "hr_experience_analytic_view.xml", + ], + "installable": True, +} diff --git a/hr_experience_analytic/hr_experience_analytic.py b/hr_experience_analytic/hr_experience_analytic.py new file mode 100644 index 00000000000..0b7369acd8e --- /dev/null +++ b/hr_experience_analytic/hr_experience_analytic.py @@ -0,0 +1,31 @@ +############################################################################### +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2013 Savoir-faire Linux (). +# +# 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 . +# +############################################################################### +from osv import orm, fields + + +class hr_professional(orm.Model): + _inherit = 'hr.experience' + _columns = { + 'analytic_id': fields.many2one('account.analytic.account', + 'Project', + domain=[('type', '!=', 'view')], + help=""" +Enter the project, contract or analytic account"""), + } diff --git a/hr_experience_analytic/hr_experience_analytic_view.xml b/hr_experience_analytic/hr_experience_analytic_view.xml new file mode 100644 index 00000000000..9447dd900e1 --- /dev/null +++ b/hr_experience_analytic/hr_experience_analytic_view.xml @@ -0,0 +1,16 @@ + + + + + hr.experience.form + hr.experience + + + + + + + + + + diff --git a/hr_experience_analytic/i18n/fr.po b/hr_experience_analytic/i18n/fr.po new file mode 100644 index 00000000000..e62c2ead103 --- /dev/null +++ b/hr_experience_analytic/i18n/fr.po @@ -0,0 +1,38 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * hr_experience_analytic +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-09-09 01:40+0000\n" +"PO-Revision-Date: 2014-09-08 21:46-0500\n" +"Last-Translator: Maxime Chambreuil \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.5.4\n" +"Language: French\n" + +#. module: hr_experience_analytic +#: help:hr.experience,analytic_id:0 +msgid "" +"\n" +"Enter the project, contract or analytic account" +msgstr "" +"\n" +"Entrer le projet, contrat ou compte analytique" + +#. module: hr_experience_analytic +#: field:hr.experience,analytic_id:0 +msgid "Project" +msgstr "Projet" + +#. module: hr_experience_analytic +#: code:_description:0 +#: model:ir.model,name:hr_experience_analytic.model_hr_experience +#, python-format +msgid "hr.experience" +msgstr "hr.experience" diff --git a/hr_experience_analytic/i18n/hr_experience_analytic.pot b/hr_experience_analytic/i18n/hr_experience_analytic.pot new file mode 100644 index 00000000000..5f36f2df6bf --- /dev/null +++ b/hr_experience_analytic/i18n/hr_experience_analytic.pot @@ -0,0 +1,36 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * hr_experience_analytic +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-09-09 01:40+0000\n" +"PO-Revision-Date: 2014-09-08 21:40-0500\n" +"Last-Translator: Maxime Chambreuil \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 1.5.4\n" + +#. module: hr_experience_analytic +#: help:hr.experience,analytic_id:0 +msgid "" +"\n" +"Enter the project, contract or analytic account" +msgstr "" + +#. module: hr_experience_analytic +#: field:hr.experience,analytic_id:0 +msgid "Project" +msgstr "" + +#. module: hr_experience_analytic +#: code:_description:0 +#: model:ir.model,name:hr_experience_analytic.model_hr_experience +#, python-format +msgid "hr.experience" +msgstr ""