Skip to content

Commit

Permalink
[IMP] Refactor using event_recalculate addon
Browse files Browse the repository at this point in the history
  • Loading branch information
antespi authored and Javier Iniesta committed Oct 29, 2015
1 parent 47e4240 commit 577efa2
Show file tree
Hide file tree
Showing 18 changed files with 546 additions and 248 deletions.
45 changes: 43 additions & 2 deletions event_project/README.rst
@@ -1,12 +1,17 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

============================
Plan events through projects
============================

This module allows you to assign a project template to an event, creating the corresponding project for the event that ends on the event start date, and plan the project tasks backwards according a new field "Event anticipation days".
This module allows you to assign a project template to an event, creating the
corresponding project for the event that ends on the event start date, and
plan the project tasks backwards according a new field "Event anticipation days".

If the event date is changed, then all the pending tasks are retro-planned again according the new date."
If the event date is changed, then all the pending tasks are retro-planned
again according the new date.


Usage
Expand All @@ -17,15 +22,51 @@ To use this module, you need to:
* First step, create a project template.
* Second step, indicate in to task of template the previous days to begin task.
* And Last step, create a new event and select project template.

It will then create automatically a new project related with the event.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/199/8.0


Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/event/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/event/issues/new?body=module:%20event_project%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


License
=======

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/agpl-3.0-standalone.html>.


Credits
=======

Contributors
------------

* Endika Iglesias <endikaig@antiun.com>
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com>
* Rafael Blasco <rafabn@antiun.com>
* Antonio Espinosa <antonioea@antiun.com>
* Javier Iniesta <javieria@antiun.com>

Maintainer
----------
Expand Down
27 changes: 3 additions & 24 deletions event_project/__init__.py
@@ -1,26 +1,5 @@

# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright :
# (c) 2014 Antiun Ingenieria S.L. (Madrid, Spain, http://www.antiun.com)
# Endika Iglesias <endikaig@antiun.com>
# Antonio Espinosa <antonioea@antiun.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/>.
#
##############################################################################
# -*- coding: utf-8 -*-
# See README.rst file on addon root folder for license details

from . import models
from . import wizard
38 changes: 12 additions & 26 deletions event_project/__openerp__.py
@@ -1,39 +1,25 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright :
# (c) 2014 Antiun Ingenieria S.L. (Madrid, Spain, http://www.antiun.com)
# Endika Iglesias <endikaig@antiun.com>
# Antonio Espinosa <antonioea@antiun.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/>.
#
##############################################################################
# -*- coding: utf-8 -*-
# See README.rst file on addon root folder for license details

{
"name": "Event project",
"version": "8.0.1.0.0",
"version": "8.0.1.1.0",
"author": "Antiun Ingeniería S.L., "
"Serv. Tecnol. Avanzados - Pedro M. Baeza, ",
"Serv. Tecnol. Avanzados - Pedro M. Baeza, "
"Odoo Community Association (OCA)",
"website": "http://www.antiun.com",
"license": "AGPL-3",
"category": "Event Management",
"depends": ['base', 'event', 'project'],
"depends": [
'event',
'project_recalculate'
],
'data': [
"wizard/project_template_wizard.xml",
"views/event_event_view.xml",
"views/project_project_view.xml",
"views/project_task_view.xml",
"security/ir.model.access.csv",
],
"installable": True,
}
122 changes: 109 additions & 13 deletions event_project/i18n/es.po
@@ -1,46 +1,142 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * event_project
# * event_project
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-05-09 11:24+0000\n"
"PO-Revision-Date: 2015-05-09 11:24+0000\n"
"POT-Creation-Date: 2015-10-29 16:16+0000\n"
"PO-Revision-Date: 2015-10-29 16:16+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: event_project
#: view:project.template.wizard:event_project.view_project_template_wizard
msgid "Cancel"
msgstr "Cancelar"

#. module: event_project
#: view:project.template.wizard:event_project.view_project_template_wizard
msgid "Create Project"
msgstr "Crear proyecto"

#. module: event_project
#: field:project.template.wizard,create_uid:0
msgid "Created by"
msgstr "Creado por"

#. module: event_project
#: field:project.template.wizard,create_date:0
msgid "Created on"
msgstr "Creado en"

#. module: event_project
#: model:ir.model,name:event_project.model_event_event
#: view:project.task:event_project.view_task_search_form
msgid "Event"
msgstr "Evento"

#. module: event_project
#: field:project.task,anticipation_days:0
msgid "Event anticipation days"
msgstr "Días de anticipación del evento"
#: view:event.event:event_project.view_event_form
msgid "Event Details"
msgstr "Detalles del evento"

#. module: event_project
#: field:project.template.wizard,event_id:0
msgid "Event id"
msgstr "ID del evento"

#. module: event_project
#: field:project.template.wizard,id:0
msgid "ID"
msgstr "ID"

#. module: event_project
#: field:project.template.wizard,write_uid:0
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: event_project
#: field:project.template.wizard,write_date:0
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: event_project
#: model:ir.model,name:event_project.model_project_project
msgid "Project"
msgstr "Proyecto"

#. module: event_project
#: help:project.task,anticipation_days:0
msgid "Previous day to event date begin"
msgstr "Días previos a la fecha inicio del evento"
#: model:ir.model,name:event_project.model_project_task_work
msgid "Project Task Work"
msgstr "Trabajo de la tarea"

#. module: event_project
#: field:event.event,project_related:0
#: model:ir.actions.act_window,name:event_project.action_project_template_wizard
msgid "Project Template Wizard"
msgstr "Wizard de plantilla de proyecto"

#. module: event_project
#: help:event.event,project_id:0
msgid "Project end date will be updated with event start date."
msgstr "La fecha fin del proyecto se actualizará con la fecha inicio del evento"

#. module: event_project
#: field:project.project,event_id:0
#: field:project.task,event_id:0
#: field:project.task.work,event_id:0
msgid "Related event"
msgstr "Evento relacionado"

#. module: event_project
#: field:event.event,project_id:0
msgid "Related project"
msgstr "Projecto relacionado"
msgstr "Proyecto relacionado"

#. module: event_project
#: view:project.template.wizard:event_project.view_project_template_wizard
msgid "Select a project template"
msgstr "Seleccionar una plantilla de proyecto"

#. module: event_project
#: view:event.event:event_project.view_event_form
msgid "Set Project Template"
msgstr "Asignar plantilla de proyecto"

#. module: event_project
#: model:ir.model,name:event_project.model_project_task
msgid "Task"
msgstr "Tarea"

#. module: event_project
#: field:event.event,project_template:0
#: view:event.event:event_project.view_event_form
#: model:ir.actions.act_window,name:event_project.act_event_task_list
msgid "Tasks"
msgstr "Tareas"

#. module: event_project
#: field:project.template.wizard,project_id:0
msgid "Template project"
msgstr "Plantilla de projecto"
msgstr "Proyecto plantilla"

#. module: event_project
#: code:addons/event_project/wizard/project_template_wizard.py:24
#, python-format
msgid "Template project is required."
msgstr "El proyecto plantilla es obligatorio."

#. module: event_project
#: view:event.event:event_project.view_event_form
#: field:event.event,work_ids:0
msgid "Works"
msgstr "Trabajos"

#. module: event_project
#: view:project.template.wizard:event_project.view_project_template_wizard
msgid "or"
msgstr "o"

0 comments on commit 577efa2

Please sign in to comment.