Skip to content

Commit

Permalink
Merge pull request #20 from savoirfairelinux/7.0-hr_experience_analytic
Browse files Browse the repository at this point in the history
[ADD] hr_experience_analytic
  • Loading branch information
Maxime Chambreuil - http://www.savoirfairelinux.com committed Sep 29, 2014
2 parents 747d8db + 0c1df2f commit d8ab403
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 0 deletions.
21 changes: 21 additions & 0 deletions hr_experience_analytic/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# -*- 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_analytic
54 changes: 54 additions & 0 deletions hr_experience_analytic/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
###############################################################################
#
# 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 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 <support@savoirfairelinux.com>
* Maxime Chambreuil <maxime.chambreuil@savoirfairelinux.com>
""",
"data": [
"hr_experience_analytic_view.xml",
],
"installable": True,
}
31 changes: 31 additions & 0 deletions hr_experience_analytic/hr_experience_analytic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
###############################################################################
#
# 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 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"""),
}
16 changes: 16 additions & 0 deletions hr_experience_analytic/hr_experience_analytic_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<openerp>
<data>

<record model="ir.ui.view" id="view_experience_form">
<field name="name">hr.experience.form</field>
<field name="model">hr.experience</field>
<field name="inherit_id" ref="hr_experience.view_professional_form"/>
<field name="arch" type="xml">
<field name="location" position="after">
<field name="analytic_id" groups="analytic.group_analytic_accounting"/>
</field>
</field>
</record>

</data>
</openerp>
38 changes: 38 additions & 0 deletions hr_experience_analytic/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -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 <maxime.chambreuil@savoirfairelinux.com>\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"
36 changes: 36 additions & 0 deletions hr_experience_analytic/i18n/hr_experience_analytic.pot
Original file line number Diff line number Diff line change
@@ -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 <maxime.chambreuil@savoirfairelinux.com>\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 ""

0 comments on commit d8ab403

Please sign in to comment.