diff --git a/project_budget_characterization/README.rst b/project_budget_characterization/README.rst new file mode 100644 index 00000000..9c283c0d --- /dev/null +++ b/project_budget_characterization/README.rst @@ -0,0 +1,29 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 + +=============================== +Project Budget Characterization +=============================== + +This module gets characterization data to budget lines. + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smash it by providing detailed and welcomed feedback. + +Credits +======= + +Contributors +------------ + +* Oihane Crucelaegui +* Ana Juaristi + +Do not contact contributors directly about support or help with technical issues. diff --git a/project_budget_characterization/__init__.py b/project_budget_characterization/__init__.py new file mode 100644 index 00000000..288dc48e --- /dev/null +++ b/project_budget_characterization/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2018 Oihane Crucelaegui - AvanzOSC +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import models diff --git a/project_budget_characterization/__manifest__.py b/project_budget_characterization/__manifest__.py new file mode 100644 index 00000000..87545d1a --- /dev/null +++ b/project_budget_characterization/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2018 Oihane Crucelaegui - AvanzOSC +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +{ + "name": "Project Bugdet Characterization", + "version": "11.0.1.0.0", + "category": "Custom Module", + "license": "AGPL-3", + "author": "AvanzOSC", + "website": "http://www.avanzosc.es", + "contributors": [ + "Oihane Crucelaegui ", + "Ana Juaristi ", + ], + "depends": ["project_budget", "project_characterization"], + "data": ["views/crossovered_budget_view.xml"], + "installable": True, + "auto_install": True, +} diff --git a/project_budget_characterization/i18n/es.po b/project_budget_characterization/i18n/es.po new file mode 100644 index 00000000..05a41fc2 --- /dev/null +++ b/project_budget_characterization/i18n/es.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_budget_characterization +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-10-01 10:20+0000\n" +"PO-Revision-Date: 2018-10-01 10:20+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: project_budget_characterization +#: model:ir.model.fields,field_description:project_budget_characterization.field_crossovered_budget_lines_res_area_id +#: model:ir.ui.view,arch_db:project_budget_characterization.crossovered_budget_lines_search_view +msgid "Area" +msgstr "Área" + +#. module: project_budget_characterization +#: model:ir.model.fields,field_description:project_budget_characterization.field_crossovered_budget_lines_res_area_type_id +#: model:ir.ui.view,arch_db:project_budget_characterization.crossovered_budget_lines_search_view +msgid "Area Type" +msgstr "Tipo" + +#. module: project_budget_characterization +#: model:ir.model,name:project_budget_characterization.model_crossovered_budget_lines +msgid "Budget Line" +msgstr "Línea de presupuesto" + +#. module: project_budget_characterization +#: model:ir.model.fields,field_description:project_budget_characterization.field_crossovered_budget_lines_res_team_id +#: model:ir.ui.view,arch_db:project_budget_characterization.crossovered_budget_lines_search_view +msgid "Team" +msgstr "Equipo" + diff --git a/project_budget_characterization/models/__init__.py b/project_budget_characterization/models/__init__.py new file mode 100644 index 00000000..ad7bdc3f --- /dev/null +++ b/project_budget_characterization/models/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2018 Oihane Crucelaegui - AvanzOSC +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import crossovered_budget_line diff --git a/project_budget_characterization/models/crossovered_budget_line.py b/project_budget_characterization/models/crossovered_budget_line.py new file mode 100644 index 00000000..a75d20e1 --- /dev/null +++ b/project_budget_characterization/models/crossovered_budget_line.py @@ -0,0 +1,27 @@ +# Copyright 2018 Oihane Crucelaegui - AvanzOSC +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from odoo import fields, models + + +class CrossoveredBudgetLines(models.Model): + _inherit = "crossovered.budget.lines" + + res_area_id = fields.Many2one( + comodel_name="res.area", + string="Area", + related="analytic_account_id.res_area_id", + store=True, + ) + res_area_type_id = fields.Many2one( + comodel_name="res.area.type", + string="Area Type", + related="analytic_account_id.res_area_type_id", + store=True, + ) + res_team_id = fields.Many2one( + comodel_name="res.team", + string="Team", + related="analytic_account_id.res_team_id", + store=True, + ) diff --git a/project_budget_characterization/views/crossovered_budget_view.xml b/project_budget_characterization/views/crossovered_budget_view.xml new file mode 100644 index 00000000..747774c0 --- /dev/null +++ b/project_budget_characterization/views/crossovered_budget_view.xml @@ -0,0 +1,43 @@ + + + + crossovered.budget + + + + + + + + + + + + crossovered.budget.lines + + + + + + + + + + + + crossovered.budget.lines + + + + + + + + + + + + + + +