-
-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from savoirfairelinux/7.0-hr_experience_analytic
[ADD] hr_experience_analytic
- Loading branch information
Showing
6 changed files
with
196 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"""), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |