mirror of
https://github.com/bringout/oca-mrp.git
synced 2026-04-20 21:52:09 +02:00
Initial commit: OCA Mrp packages (117 packages)
This commit is contained in:
commit
277e84fd7a
4403 changed files with 395154 additions and 0 deletions
121
odoo-bringout-oca-event-event_project/event_project/README.rst
Normal file
121
odoo-bringout-oca-event-event_project/event_project/README.rst
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
=============
|
||||
Event project
|
||||
=============
|
||||
|
||||
..
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:43b55b332c7b2fa54fbf04e01e06798cf09891bb789deac6c53f9c35f247dde7
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
||||
:target: https://odoo-community.org/page/development-status
|
||||
:alt: Beta
|
||||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
|
||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||
:alt: License: AGPL-3
|
||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fevent-lightgray.png?logo=github
|
||||
:target: https://github.com/OCA/event/tree/16.0/event_project
|
||||
:alt: OCA/event
|
||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||
:target: https://translation.odoo-community.org/projects/event-16-0/event-16-0-event_project
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
||||
:target: https://runboat.odoo-community.org/builds?repo=OCA/event&target_branch=16.0
|
||||
:alt: Try me on Runboat
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
||||
This module allows you to assign a project to an event. This project
|
||||
will inherit its event's fields.
|
||||
|
||||
Fields inherited from event:
|
||||
|
||||
- Name
|
||||
- Date begin
|
||||
- Date end
|
||||
- Organizer
|
||||
- Note
|
||||
|
||||
**Table of contents**
|
||||
|
||||
.. contents::
|
||||
:local:
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
To use this module, you need to:
|
||||
|
||||
1. Go to an event or create a brand new one and assign a project or
|
||||
create a new one.
|
||||
2. After saving, the event will be updated with the name of the event
|
||||
and date.
|
||||
3. Modify those fields and check propagation: Namem, Date begin, Date
|
||||
end, Organizer and Note
|
||||
|
||||
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 to smash it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/event/issues/new?body=module:%20event_project%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
|
||||
Do not contact contributors directly about support or help with technical issues.
|
||||
|
||||
Credits
|
||||
=======
|
||||
|
||||
Authors
|
||||
-------
|
||||
|
||||
* Tecnativa
|
||||
* Moduon
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
- Endika Iglesias <endikaig@antiun.com>
|
||||
|
||||
- Javier Iniesta <javieria@antiun.com>
|
||||
|
||||
- `Tecnativa <https://www.tecnativa.com>`__:
|
||||
|
||||
- Pedro M. Baeza
|
||||
- Rafael Blasco
|
||||
- Antonio Espinosa
|
||||
- David Vidal
|
||||
- Ernesto Tejeda
|
||||
|
||||
- Eduardo de Miguel (`Moduon <https://www.moduon.team>`__)
|
||||
|
||||
Maintainers
|
||||
-----------
|
||||
|
||||
This module is maintained by the OCA.
|
||||
|
||||
.. image:: https://odoo-community.org/logo.png
|
||||
:alt: Odoo Community Association
|
||||
:target: https://odoo-community.org
|
||||
|
||||
OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.
|
||||
|
||||
.. |maintainer-Shide| image:: https://github.com/Shide.png?size=40px
|
||||
:target: https://github.com/Shide
|
||||
:alt: Shide
|
||||
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
|
||||
:target: https://github.com/rafaelbn
|
||||
:alt: rafaelbn
|
||||
|
||||
Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
|
||||
|
||||
|maintainer-Shide| |maintainer-rafaelbn|
|
||||
|
||||
This module is part of the `OCA/event <https://github.com/OCA/event/tree/16.0/event_project>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
|
@ -0,0 +1 @@
|
|||
from . import models
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
# Copyright 2015 Antiun - Javier Iniesta
|
||||
# Copyright 2015 Antiun - Endika Iglesias
|
||||
# Copyright 2015 Tecnativa - Antonio Espinosa
|
||||
# Copyright 2016 Tecnativa - Pedro M. Baeza
|
||||
# Copyright 2017 Tecnativa - David Vidal
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
{
|
||||
"name": "Event project",
|
||||
"version": "16.0.1.0.1",
|
||||
"author": "Tecnativa, Moduon, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/event",
|
||||
"license": "AGPL-3",
|
||||
"category": "Event Management",
|
||||
"depends": ["event", "project"],
|
||||
"data": [
|
||||
"views/event_event_view.xml",
|
||||
"views/project_project_view.xml",
|
||||
"views/project_task_view.xml",
|
||||
"security/ir.model.access.csv",
|
||||
],
|
||||
"installable": True,
|
||||
"maintainers": ["Shide", "rafaelbn"],
|
||||
}
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * event_project
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \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
|
||||
#: model:ir.model,name:event_project.model_event_event
|
||||
#: model_terms:ir.ui.view,arch_db:event_project.view_task_search_form
|
||||
msgid "Event"
|
||||
msgstr "Dogadaj"
|
||||
|
||||
#. module: event_project
|
||||
#: model_terms:ir.actions.act_window,help:event_project.act_event_task_list
|
||||
msgid ""
|
||||
"Keep track of the progress of your tasks from creation to completion.<br>\n"
|
||||
" Collaborate efficiently by chatting in real-time or via email."
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model_terms:ir.actions.act_window,help:event_project.act_event_task_list
|
||||
msgid "No tasks found. Let's create one!"
|
||||
msgstr "Nema pronađenih zadataka. Kreiraj novi!"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_project_project
|
||||
msgid "Project"
|
||||
msgstr "Projekat"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,help:event_project.field_event_event__project_id
|
||||
#: model:ir.model.fields,help:event_project.field_event_session__project_id
|
||||
msgid "Project end date will be updated with event start date."
|
||||
msgstr "Datum završetka projekta će biti ažuriran sa početnim datumom događaja."
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_project_project__event_id
|
||||
#: model:ir.model.fields,field_description:event_project.field_project_task__event_id
|
||||
msgid "Related event"
|
||||
msgstr "Povezani događaj"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__project_id
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__project_id
|
||||
msgid "Related project"
|
||||
msgstr "Povezani projekt"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_project_task
|
||||
msgid "Task"
|
||||
msgstr "Zadatak"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__count_tasks
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__count_tasks
|
||||
msgid "Task number"
|
||||
msgstr "Broj zadatka"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.actions.act_window,name:event_project.act_event_task_list
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__task_ids
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__task_ids
|
||||
#: model_terms:ir.ui.view,arch_db:event_project.view_event_form
|
||||
msgid "Tasks"
|
||||
msgstr "Zadaci"
|
||||
134
odoo-bringout-oca-event-event_project/event_project/i18n/es.po
Normal file
134
odoo-bringout-oca-event-event_project/event_project/i18n/es.po
Normal file
|
|
@ -0,0 +1,134 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * event_project
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-10-29 16:16+0000\n"
|
||||
"PO-Revision-Date: 2023-12-29 10:33+0000\n"
|
||||
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 4.17\n"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_event_event
|
||||
#: model_terms:ir.ui.view,arch_db:event_project.view_task_search_form
|
||||
msgid "Event"
|
||||
msgstr "Evento"
|
||||
|
||||
#. module: event_project
|
||||
#: model_terms:ir.actions.act_window,help:event_project.act_event_task_list
|
||||
msgid ""
|
||||
"Keep track of the progress of your tasks from creation to completion.<br>\n"
|
||||
" Collaborate efficiently by chatting in real-time or via "
|
||||
"email."
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model_terms:ir.actions.act_window,help:event_project.act_event_task_list
|
||||
msgid "No tasks found. Let's create one!"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_project_project
|
||||
msgid "Project"
|
||||
msgstr "Proyecto"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,help:event_project.field_event_event__project_id
|
||||
#: model:ir.model.fields,help:event_project.field_event_session__project_id
|
||||
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
|
||||
#: model:ir.model.fields,field_description:event_project.field_project_project__event_id
|
||||
#: model:ir.model.fields,field_description:event_project.field_project_task__event_id
|
||||
msgid "Related event"
|
||||
msgstr "Evento relacionado"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__project_id
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__project_id
|
||||
msgid "Related project"
|
||||
msgstr "Proyecto relacionado"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_project_task
|
||||
msgid "Task"
|
||||
msgstr "Tarea"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__count_tasks
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__count_tasks
|
||||
msgid "Task number"
|
||||
msgstr "Número de Tarea"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.actions.act_window,name:event_project.act_event_task_list
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__task_ids
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__task_ids
|
||||
#: model_terms:ir.ui.view,arch_db:event_project.view_event_form
|
||||
msgid "Tasks"
|
||||
msgstr "Tareas"
|
||||
|
||||
#~ msgid "Display Name"
|
||||
#~ msgstr "Mostrar Nombre"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Última Modificación el"
|
||||
|
||||
#~ msgid "Cancel"
|
||||
#~ msgstr "Cancelar"
|
||||
|
||||
#~ msgid "Create Project"
|
||||
#~ msgstr "Crear proyecto"
|
||||
|
||||
#~ msgid "Created by"
|
||||
#~ msgstr "Creado por"
|
||||
|
||||
#~ msgid "Created on"
|
||||
#~ msgstr "Creado en"
|
||||
|
||||
#~ msgid "Event Details"
|
||||
#~ msgstr "Detalles del evento"
|
||||
|
||||
#~ msgid "Event id"
|
||||
#~ msgstr "ID del evento"
|
||||
|
||||
#~ msgid "Last Updated by"
|
||||
#~ msgstr "Última actualización por"
|
||||
|
||||
#~ msgid "Last Updated on"
|
||||
#~ msgstr "Última actualización en"
|
||||
|
||||
#~ msgid "Project Task Work"
|
||||
#~ msgstr "Trabajo de la tarea"
|
||||
|
||||
#~ msgid "Project Template Wizard"
|
||||
#~ msgstr "Wizard de plantilla de proyecto"
|
||||
|
||||
#~ msgid "Select a project template"
|
||||
#~ msgstr "Seleccionar una plantilla de proyecto"
|
||||
|
||||
#~ msgid "Set Project Template"
|
||||
#~ msgstr "Asignar plantilla de proyecto"
|
||||
|
||||
#~ msgid "Template project"
|
||||
#~ msgstr "Proyecto plantilla"
|
||||
|
||||
#~ msgid "Template project is required."
|
||||
#~ msgstr "El proyecto plantilla es obligatorio."
|
||||
|
||||
#~ msgid "Works"
|
||||
#~ msgstr "Trabajos"
|
||||
|
||||
#~ msgid "or"
|
||||
#~ msgstr "o"
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * event_project
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \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
|
||||
#: model:ir.model,name:event_project.model_event_event
|
||||
#: model_terms:ir.ui.view,arch_db:event_project.view_task_search_form
|
||||
msgid "Event"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model_terms:ir.actions.act_window,help:event_project.act_event_task_list
|
||||
msgid ""
|
||||
"Keep track of the progress of your tasks from creation to completion.<br>\n"
|
||||
" Collaborate efficiently by chatting in real-time or via email."
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model_terms:ir.actions.act_window,help:event_project.act_event_task_list
|
||||
msgid "No tasks found. Let's create one!"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_project_project
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,help:event_project.field_event_event__project_id
|
||||
#: model:ir.model.fields,help:event_project.field_event_session__project_id
|
||||
msgid "Project end date will be updated with event start date."
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_project_project__event_id
|
||||
#: model:ir.model.fields,field_description:event_project.field_project_task__event_id
|
||||
msgid "Related event"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__project_id
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__project_id
|
||||
msgid "Related project"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_project_task
|
||||
msgid "Task"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__count_tasks
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__count_tasks
|
||||
msgid "Task number"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.actions.act_window,name:event_project.act_event_task_list
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__task_ids
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__task_ids
|
||||
#: model_terms:ir.ui.view,arch_db:event_project.view_event_form
|
||||
msgid "Tasks"
|
||||
msgstr ""
|
||||
|
|
@ -0,0 +1,88 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * event_project
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 14.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"PO-Revision-Date: 2025-05-10 15:23+0000\n"
|
||||
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
|
||||
"Language-Team: none\n"
|
||||
"Language: it\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 5.10.4\n"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_event_event
|
||||
#: model_terms:ir.ui.view,arch_db:event_project.view_task_search_form
|
||||
msgid "Event"
|
||||
msgstr "Evento"
|
||||
|
||||
#. module: event_project
|
||||
#: model_terms:ir.actions.act_window,help:event_project.act_event_task_list
|
||||
msgid ""
|
||||
"Keep track of the progress of your tasks from creation to completion.<br>\n"
|
||||
" Collaborate efficiently by chatting in real-time or via "
|
||||
"email."
|
||||
msgstr ""
|
||||
"Tiene traccia dell'avanzamento dei propri lavori dalla creazione al "
|
||||
"completamento.<br>\n"
|
||||
" Collabora efficientemente dialogando in tempo reale o per "
|
||||
"e-mail."
|
||||
|
||||
#. module: event_project
|
||||
#: model_terms:ir.actions.act_window,help:event_project.act_event_task_list
|
||||
msgid "No tasks found. Let's create one!"
|
||||
msgstr "Nessun lavoro trovato! Creiamone uno!"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_project_project
|
||||
msgid "Project"
|
||||
msgstr "Progetto"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,help:event_project.field_event_event__project_id
|
||||
#: model:ir.model.fields,help:event_project.field_event_session__project_id
|
||||
msgid "Project end date will be updated with event start date."
|
||||
msgstr "La data fine progetto verrà aggiornata con la data inizio evento."
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_project_project__event_id
|
||||
#: model:ir.model.fields,field_description:event_project.field_project_task__event_id
|
||||
msgid "Related event"
|
||||
msgstr "Evento correlato"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__project_id
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__project_id
|
||||
msgid "Related project"
|
||||
msgstr "Progetto correlato"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_project_task
|
||||
msgid "Task"
|
||||
msgstr "Lavoro"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__count_tasks
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__count_tasks
|
||||
msgid "Task number"
|
||||
msgstr "Numero lavoro"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.actions.act_window,name:event_project.act_event_task_list
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__task_ids
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__task_ids
|
||||
#: model_terms:ir.ui.view,arch_db:event_project.view_event_form
|
||||
msgid "Tasks"
|
||||
msgstr "Lavori"
|
||||
|
||||
#~ msgid "Display Name"
|
||||
#~ msgstr "Nome visualizzato"
|
||||
|
||||
#~ msgid "Last Modified on"
|
||||
#~ msgstr "Ultima modifica il"
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * 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-10-12 06:20+0200\n"
|
||||
"Last-Translator: Matjaz Mozetic <m.mozetic@matmoz.si>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: sl\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.8.5\n"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_event_event
|
||||
#: model_terms:ir.ui.view,arch_db:event_project.view_task_search_form
|
||||
msgid "Event"
|
||||
msgstr "Dogodek"
|
||||
|
||||
#. module: event_project
|
||||
#: model_terms:ir.actions.act_window,help:event_project.act_event_task_list
|
||||
msgid ""
|
||||
"Keep track of the progress of your tasks from creation to completion.<br>\n"
|
||||
" Collaborate efficiently by chatting in real-time or via "
|
||||
"email."
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model_terms:ir.actions.act_window,help:event_project.act_event_task_list
|
||||
msgid "No tasks found. Let's create one!"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_project_project
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,help:event_project.field_event_event__project_id
|
||||
#: model:ir.model.fields,help:event_project.field_event_session__project_id
|
||||
msgid "Project end date will be updated with event start date."
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_project_project__event_id
|
||||
#: model:ir.model.fields,field_description:event_project.field_project_task__event_id
|
||||
#, fuzzy
|
||||
msgid "Related event"
|
||||
msgstr "Povezani projekt"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__project_id
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__project_id
|
||||
msgid "Related project"
|
||||
msgstr "Povezani projekt"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model,name:event_project.model_project_task
|
||||
msgid "Task"
|
||||
msgstr "Opravilo"
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__count_tasks
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__count_tasks
|
||||
msgid "Task number"
|
||||
msgstr ""
|
||||
|
||||
#. module: event_project
|
||||
#: model:ir.actions.act_window,name:event_project.act_event_task_list
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_event__task_ids
|
||||
#: model:ir.model.fields,field_description:event_project.field_event_session__task_ids
|
||||
#: model_terms:ir.ui.view,arch_db:event_project.view_event_form
|
||||
#, fuzzy
|
||||
msgid "Tasks"
|
||||
msgstr "Opravilo"
|
||||
|
||||
#~ msgid "Event anticipation days"
|
||||
#~ msgstr "Dni pred dogodkom"
|
||||
|
||||
#~ msgid "Previous day to event date begin"
|
||||
#~ msgstr "Dni pred začetkom dogodka"
|
||||
|
||||
#~ msgid "Template project"
|
||||
#~ msgstr "Predloga projekta"
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
from . import event_event
|
||||
from . import project_project
|
||||
from . import project_task
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
# Copyright 2017 Tecnativa - David Vidal
|
||||
# Copyright 2024 Moduon Team S.L.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
|
||||
class EventEvent(models.Model):
|
||||
_inherit = "event.event"
|
||||
|
||||
project_id = fields.Many2one(
|
||||
comodel_name="project.project",
|
||||
string="Related project",
|
||||
help="Project end date will be updated with event start date.",
|
||||
)
|
||||
task_ids = fields.One2many(
|
||||
comodel_name="project.task",
|
||||
inverse_name="event_id",
|
||||
string="Tasks",
|
||||
readonly=True,
|
||||
)
|
||||
count_tasks = fields.Integer(
|
||||
string="Task number",
|
||||
compute="_compute_count_tasks",
|
||||
)
|
||||
|
||||
@api.depends("task_ids")
|
||||
def _compute_count_tasks(self):
|
||||
for event in self:
|
||||
event.count_tasks = len(event.task_ids)
|
||||
|
||||
def project_data_update(self, vals):
|
||||
"""Update data in the linked project. To be called after calling
|
||||
create/write super."""
|
||||
|
||||
def _get_project_vals(event):
|
||||
return {
|
||||
"name": event.display_name,
|
||||
"date_start": event.date_begin,
|
||||
"date": event.date_end,
|
||||
"event_id": event.id,
|
||||
"partner_id": event.organizer_id.id,
|
||||
"description": event.note,
|
||||
}
|
||||
|
||||
fields_to_check = {
|
||||
"name",
|
||||
"date_begin",
|
||||
"date_end",
|
||||
"project_id",
|
||||
"organizer_id",
|
||||
"note",
|
||||
}
|
||||
if not any([f in vals for f in fields_to_check]):
|
||||
return
|
||||
|
||||
for event in self:
|
||||
if not event.project_id:
|
||||
continue
|
||||
event.project_id.write(_get_project_vals(event))
|
||||
|
||||
@api.model
|
||||
def create(self, vals):
|
||||
events = super().create(vals)
|
||||
events.project_data_update(vals)
|
||||
return events
|
||||
|
||||
def write(self, vals):
|
||||
if vals.get("project_id") is False:
|
||||
self.mapped("project_id").write({"event_id": False})
|
||||
res = super().write(vals)
|
||||
self.project_data_update(vals)
|
||||
return res
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
# Copyright 2024 Moduon Team S.L.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class Project(models.Model):
|
||||
_inherit = "project.project"
|
||||
|
||||
event_id = fields.Many2one(
|
||||
comodel_name="event.event", string="Related event", readonly=True
|
||||
)
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
# Copyright 2024 Moduon Team S.L.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ProjectTask(models.Model):
|
||||
_inherit = "project.task"
|
||||
|
||||
event_id = fields.Many2one(
|
||||
string="Related event", store=True, related="project_id.event_id"
|
||||
)
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
- Endika Iglesias \<<endikaig@antiun.com>\>
|
||||
- Javier Iniesta \<<javieria@antiun.com>\>
|
||||
|
||||
- [Tecnativa](https://www.tecnativa.com):
|
||||
|
||||
- Pedro M. Baeza
|
||||
- Rafael Blasco
|
||||
- Antonio Espinosa
|
||||
- David Vidal
|
||||
- Ernesto Tejeda
|
||||
|
||||
- Eduardo de Miguel ([Moduon](https://www.moduon.team))
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
This module allows you to assign a project to an event. This project will inherit its
|
||||
event's fields.
|
||||
|
||||
Fields inherited from event:
|
||||
|
||||
- Name
|
||||
- Date begin
|
||||
- Date end
|
||||
- Organizer
|
||||
- Note
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
To use this module, you need to:
|
||||
|
||||
1. Go to an event or create a brand new one and assign a project or create a new one.
|
||||
2. After saving, the event will be updated with the name of the event and date.
|
||||
3. Modify those fields and check propagation: Namem, Date begin, Date end, Organizer
|
||||
and Note
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_project_project_manager,project.project,model_project_project,event.group_event_manager,1,1,1,1
|
||||
|
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
|
|
@ -0,0 +1,455 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
||||
<title>Event project</title>
|
||||
<style type="text/css">
|
||||
|
||||
/*
|
||||
:Author: David Goodger (goodger@python.org)
|
||||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
|
||||
:Copyright: This stylesheet has been placed in the public domain.
|
||||
|
||||
Default cascading style sheet for the HTML output of Docutils.
|
||||
|
||||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
||||
customize this style sheet.
|
||||
*/
|
||||
|
||||
/* used to remove borders from tables and images */
|
||||
.borderless, table.borderless td, table.borderless th {
|
||||
border: 0 }
|
||||
|
||||
table.borderless td, table.borderless th {
|
||||
/* Override padding for "table.docutils td" with "! important".
|
||||
The right padding separates the table cells. */
|
||||
padding: 0 0.5em 0 0 ! important }
|
||||
|
||||
.first {
|
||||
/* Override more specific margin styles with "! important". */
|
||||
margin-top: 0 ! important }
|
||||
|
||||
.last, .with-subtitle {
|
||||
margin-bottom: 0 ! important }
|
||||
|
||||
.hidden {
|
||||
display: none }
|
||||
|
||||
.subscript {
|
||||
vertical-align: sub;
|
||||
font-size: smaller }
|
||||
|
||||
.superscript {
|
||||
vertical-align: super;
|
||||
font-size: smaller }
|
||||
|
||||
a.toc-backref {
|
||||
text-decoration: none ;
|
||||
color: black }
|
||||
|
||||
blockquote.epigraph {
|
||||
margin: 2em 5em ; }
|
||||
|
||||
dl.docutils dd {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
||||
dl.docutils dt {
|
||||
font-weight: bold }
|
||||
*/
|
||||
|
||||
div.abstract {
|
||||
margin: 2em 5em }
|
||||
|
||||
div.abstract p.topic-title {
|
||||
font-weight: bold ;
|
||||
text-align: center }
|
||||
|
||||
div.admonition, div.attention, div.caution, div.danger, div.error,
|
||||
div.hint, div.important, div.note, div.tip, div.warning {
|
||||
margin: 2em ;
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.admonition p.admonition-title, div.hint p.admonition-title,
|
||||
div.important p.admonition-title, div.note p.admonition-title,
|
||||
div.tip p.admonition-title {
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
div.attention p.admonition-title, div.caution p.admonition-title,
|
||||
div.danger p.admonition-title, div.error p.admonition-title,
|
||||
div.warning p.admonition-title, .code .error {
|
||||
color: red ;
|
||||
font-weight: bold ;
|
||||
font-family: sans-serif }
|
||||
|
||||
/* Uncomment (and remove this text!) to get reduced vertical space in
|
||||
compound paragraphs.
|
||||
div.compound .compound-first, div.compound .compound-middle {
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
div.compound .compound-last, div.compound .compound-middle {
|
||||
margin-top: 0.5em }
|
||||
*/
|
||||
|
||||
div.dedication {
|
||||
margin: 2em 5em ;
|
||||
text-align: center ;
|
||||
font-style: italic }
|
||||
|
||||
div.dedication p.topic-title {
|
||||
font-weight: bold ;
|
||||
font-style: normal }
|
||||
|
||||
div.figure {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
div.footer, div.header {
|
||||
clear: both;
|
||||
font-size: smaller }
|
||||
|
||||
div.line-block {
|
||||
display: block ;
|
||||
margin-top: 1em ;
|
||||
margin-bottom: 1em }
|
||||
|
||||
div.line-block div.line-block {
|
||||
margin-top: 0 ;
|
||||
margin-bottom: 0 ;
|
||||
margin-left: 1.5em }
|
||||
|
||||
div.sidebar {
|
||||
margin: 0 0 0.5em 1em ;
|
||||
border: medium outset ;
|
||||
padding: 1em ;
|
||||
background-color: #ffffee ;
|
||||
width: 40% ;
|
||||
float: right ;
|
||||
clear: right }
|
||||
|
||||
div.sidebar p.rubric {
|
||||
font-family: sans-serif ;
|
||||
font-size: medium }
|
||||
|
||||
div.system-messages {
|
||||
margin: 5em }
|
||||
|
||||
div.system-messages h1 {
|
||||
color: red }
|
||||
|
||||
div.system-message {
|
||||
border: medium outset ;
|
||||
padding: 1em }
|
||||
|
||||
div.system-message p.system-message-title {
|
||||
color: red ;
|
||||
font-weight: bold }
|
||||
|
||||
div.topic {
|
||||
margin: 2em }
|
||||
|
||||
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
||||
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
||||
margin-top: 0.4em }
|
||||
|
||||
h1.title {
|
||||
text-align: center }
|
||||
|
||||
h2.subtitle {
|
||||
text-align: center }
|
||||
|
||||
hr.docutils {
|
||||
width: 75% }
|
||||
|
||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
||||
clear: left ;
|
||||
float: left ;
|
||||
margin-right: 1em }
|
||||
|
||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
||||
clear: right ;
|
||||
float: right ;
|
||||
margin-left: 1em }
|
||||
|
||||
img.align-center, .figure.align-center, object.align-center {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
table.align-center {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
text-align: left }
|
||||
|
||||
.align-center {
|
||||
clear: both ;
|
||||
text-align: center }
|
||||
|
||||
.align-right {
|
||||
text-align: right }
|
||||
|
||||
/* reset inner alignment in figures */
|
||||
div.align-right {
|
||||
text-align: inherit }
|
||||
|
||||
/* div.align-center * { */
|
||||
/* text-align: left } */
|
||||
|
||||
.align-top {
|
||||
vertical-align: top }
|
||||
|
||||
.align-middle {
|
||||
vertical-align: middle }
|
||||
|
||||
.align-bottom {
|
||||
vertical-align: bottom }
|
||||
|
||||
ol.simple, ul.simple {
|
||||
margin-bottom: 1em }
|
||||
|
||||
ol.arabic {
|
||||
list-style: decimal }
|
||||
|
||||
ol.loweralpha {
|
||||
list-style: lower-alpha }
|
||||
|
||||
ol.upperalpha {
|
||||
list-style: upper-alpha }
|
||||
|
||||
ol.lowerroman {
|
||||
list-style: lower-roman }
|
||||
|
||||
ol.upperroman {
|
||||
list-style: upper-roman }
|
||||
|
||||
p.attribution {
|
||||
text-align: right ;
|
||||
margin-left: 50% }
|
||||
|
||||
p.caption {
|
||||
font-style: italic }
|
||||
|
||||
p.credits {
|
||||
font-style: italic ;
|
||||
font-size: smaller }
|
||||
|
||||
p.label {
|
||||
white-space: nowrap }
|
||||
|
||||
p.rubric {
|
||||
font-weight: bold ;
|
||||
font-size: larger ;
|
||||
color: maroon ;
|
||||
text-align: center }
|
||||
|
||||
p.sidebar-title {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold ;
|
||||
font-size: larger }
|
||||
|
||||
p.sidebar-subtitle {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
p.topic-title {
|
||||
font-weight: bold }
|
||||
|
||||
pre.address {
|
||||
margin-bottom: 0 ;
|
||||
margin-top: 0 ;
|
||||
font: inherit }
|
||||
|
||||
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
||||
margin-left: 2em ;
|
||||
margin-right: 2em }
|
||||
|
||||
pre.code .ln { color: grey; } /* line numbers */
|
||||
pre.code, code { background-color: #eeeeee }
|
||||
pre.code .comment, code .comment { color: #5C6576 }
|
||||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
||||
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
||||
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
||||
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
||||
pre.code .inserted, code .inserted { background-color: #A3D289}
|
||||
|
||||
span.classifier {
|
||||
font-family: sans-serif ;
|
||||
font-style: oblique }
|
||||
|
||||
span.classifier-delimiter {
|
||||
font-family: sans-serif ;
|
||||
font-weight: bold }
|
||||
|
||||
span.interpreted {
|
||||
font-family: sans-serif }
|
||||
|
||||
span.option {
|
||||
white-space: nowrap }
|
||||
|
||||
span.pre {
|
||||
white-space: pre }
|
||||
|
||||
span.problematic {
|
||||
color: red }
|
||||
|
||||
span.section-subtitle {
|
||||
/* font-size relative to parent (h1..h6 element) */
|
||||
font-size: 80% }
|
||||
|
||||
table.citation {
|
||||
border-left: solid 1px gray;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docinfo {
|
||||
margin: 2em 4em }
|
||||
|
||||
table.docutils {
|
||||
margin-top: 0.5em ;
|
||||
margin-bottom: 0.5em }
|
||||
|
||||
table.footnote {
|
||||
border-left: solid 1px black;
|
||||
margin-left: 1px }
|
||||
|
||||
table.docutils td, table.docutils th,
|
||||
table.docinfo td, table.docinfo th {
|
||||
padding-left: 0.5em ;
|
||||
padding-right: 0.5em ;
|
||||
vertical-align: top }
|
||||
|
||||
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
||||
font-weight: bold ;
|
||||
text-align: left ;
|
||||
white-space: nowrap ;
|
||||
padding-left: 0 }
|
||||
|
||||
/* "booktabs" style (no vertical lines) */
|
||||
table.docutils.booktabs {
|
||||
border: 0px;
|
||||
border-top: 2px solid;
|
||||
border-bottom: 2px solid;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
table.docutils.booktabs * {
|
||||
border: 0px;
|
||||
}
|
||||
table.docutils.booktabs th {
|
||||
border-bottom: thin solid;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
||||
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
||||
font-size: 100% }
|
||||
|
||||
ul.auto-toc {
|
||||
list-style-type: none }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="document" id="event-project">
|
||||
<h1 class="title">Event project</h1>
|
||||
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:43b55b332c7b2fa54fbf04e01e06798cf09891bb789deac6c53f9c35f247dde7
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/event/tree/16.0/event_project"><img alt="OCA/event" src="https://img.shields.io/badge/github-OCA%2Fevent-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/event-16-0/event-16-0-event_project"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/event&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module allows you to assign a project to an event. This project
|
||||
will inherit its event’s fields.</p>
|
||||
<p>Fields inherited from event:</p>
|
||||
<ul class="simple">
|
||||
<li>Name</li>
|
||||
<li>Date begin</li>
|
||||
<li>Date end</li>
|
||||
<li>Organizer</li>
|
||||
<li>Note</li>
|
||||
</ul>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
<ul class="simple">
|
||||
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
|
||||
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
|
||||
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
|
||||
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
|
||||
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
|
||||
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
|
||||
<p>To use this module, you need to:</p>
|
||||
<ol class="arabic simple">
|
||||
<li>Go to an event or create a brand new one and assign a project or
|
||||
create a new one.</li>
|
||||
<li>After saving, the event will be updated with the name of the event
|
||||
and date.</li>
|
||||
<li>Modify those fields and check propagation: Namem, Date begin, Date
|
||||
end, Organizer and Note</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="section" id="bug-tracker">
|
||||
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/event/issues">GitHub Issues</a>.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/event/issues/new?body=module:%20event_project%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
|
||||
<div class="section" id="authors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Tecnativa</li>
|
||||
<li>Moduon</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Endika Iglesias <<a class="reference external" href="mailto:endikaig@antiun.com">endikaig@antiun.com</a>></li>
|
||||
<li>Javier Iniesta <<a class="reference external" href="mailto:javieria@antiun.com">javieria@antiun.com</a>></li>
|
||||
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
|
||||
<li>Pedro M. Baeza</li>
|
||||
<li>Rafael Blasco</li>
|
||||
<li>Antonio Espinosa</li>
|
||||
<li>David Vidal</li>
|
||||
<li>Ernesto Tejeda</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Eduardo de Miguel (<a class="reference external" href="https://www.moduon.team">Moduon</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
|
||||
<p>This module is maintained by the OCA.</p>
|
||||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
|
||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||
mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
|
||||
<p><a class="reference external image-reference" href="https://github.com/Shide"><img alt="Shide" src="https://github.com/Shide.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/rafaelbn"><img alt="rafaelbn" src="https://github.com/rafaelbn.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/event/tree/16.0/event_project">OCA/event</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
from . import test_event_project
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
# Copyright 2016 Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
||||
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
|
||||
# Copyright 2024 Moduon Team S.L.
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from datetime import date, timedelta
|
||||
|
||||
from odoo import fields
|
||||
from odoo.tests import TransactionCase
|
||||
|
||||
|
||||
class TestEventProject(TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.organizer = cls.env["res.partner"].create({"name": "Organizer"})
|
||||
cls.date = {
|
||||
"begin": fields.Date.to_string(date.today()),
|
||||
"end": fields.Date.to_string(date.today() + timedelta(days=7)),
|
||||
"begin2": fields.Date.to_string(date.today() + timedelta(days=1)),
|
||||
"end2": fields.Date.to_string(date.today() + timedelta(days=9)),
|
||||
}
|
||||
cls.project = cls.env["project.project"].create(
|
||||
{
|
||||
"name": "Test project",
|
||||
}
|
||||
)
|
||||
cls.project_2 = cls.env["project.project"].create(
|
||||
{
|
||||
"name": "Test project 2",
|
||||
}
|
||||
)
|
||||
cls.event = cls.env["event.event"].create(
|
||||
{
|
||||
"name": "Test event with project",
|
||||
"date_begin": cls.date["begin"],
|
||||
"date_end": cls.date["end"],
|
||||
"project_id": cls.project.id,
|
||||
}
|
||||
)
|
||||
cls.task = cls.env["project.task"].create(
|
||||
{
|
||||
"name": "Task in project 2",
|
||||
"project_id": cls.project_2.id,
|
||||
}
|
||||
)
|
||||
|
||||
def _link_project_to_event(self, event, project):
|
||||
"""Set project in event"""
|
||||
event.write({"project_id": project.id})
|
||||
|
||||
def _assert_event_project(self, event, project):
|
||||
"""Assert a bunch of fields between event and project."""
|
||||
self.assertEqual(project.date, event.date_end.date())
|
||||
self.assertEqual(project.date_start, event.date_begin.date())
|
||||
self.assertEqual(project.name, event.display_name)
|
||||
self.assertEqual(project.partner_id, event.organizer_id)
|
||||
self.assertEqual(project.description, event.note)
|
||||
self.assertEqual(event.task_ids, project.task_ids)
|
||||
|
||||
def test_initial_project(self):
|
||||
"""Test when a project is linked to an event"""
|
||||
self._link_project_to_event(self.event, self.project)
|
||||
self._assert_event_project(self.event, self.project)
|
||||
|
||||
def test_event_udpates(self):
|
||||
"""Test project changes when event is updated"""
|
||||
self._link_project_to_event(self.event, self.project)
|
||||
self.event.date_begin = self.date["begin2"]
|
||||
self.event.date_end = self.date["end2"]
|
||||
self.event.name = "Event name changed"
|
||||
self.event.organizer_id = self.organizer
|
||||
self.event.note = "<p>Test note</p>"
|
||||
self._assert_event_project(self.event, self.project)
|
||||
|
||||
def test_project_change(self):
|
||||
"""Test project change in event"""
|
||||
self._link_project_to_event(self.event, self.project)
|
||||
self._assert_event_project(self.event, self.project)
|
||||
self.event.project_id = self.project_2
|
||||
self._assert_event_project(self.event, self.project_2)
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- Action for smartbutton in event form view -->
|
||||
<record id="act_event_task_list" model="ir.actions.act_window">
|
||||
<field name="name">Tasks</field>
|
||||
<field name="res_model">project.task</field>
|
||||
<field name="view_mode">kanban,tree,form,calendar,pivot,graph,activity</field>
|
||||
<field name="domain">[('event_id', '=', active_id)]</field>
|
||||
<field name="search_view_id" ref="project.view_task_search_form" />
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
No tasks found. Let's create one!
|
||||
</p>
|
||||
<p>
|
||||
Keep track of the progress of your tasks from creation to completion.<br
|
||||
/>
|
||||
Collaborate efficiently by chatting in real-time or via email.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Add project fields and smartbutton in event form view -->
|
||||
<record id="view_event_form" model="ir.ui.view">
|
||||
<field name="name">Add project to event</field>
|
||||
<field name="model">event.event</field>
|
||||
<field name="inherit_id" ref="event.view_event_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="date_tz" position="after">
|
||||
<field
|
||||
name="project_id"
|
||||
domain="[('event_id', '=', False), ('active', '!=', False)]"
|
||||
context="{'default_name': name, 'default_date': date_begin}"
|
||||
/>
|
||||
</field>
|
||||
<div name="button_box" position="inside">
|
||||
<button
|
||||
name="%(act_event_task_list)d"
|
||||
type="action"
|
||||
class="oe_stat_button"
|
||||
icon="fa-tasks"
|
||||
attrs="{'invisible': [('project_id','=', False)]}"
|
||||
context="{'default_project_id': project_id}"
|
||||
>
|
||||
<field name="count_tasks" widget="statinfo" string="Tasks" />
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- Add related event to project form view -->
|
||||
<record id="edit_project" model="ir.ui.view">
|
||||
<field name="name">Add related event to project</field>
|
||||
<field name="model">project.project</field>
|
||||
<field name="inherit_id" ref="project.edit_project" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='partner_id']" position="after">
|
||||
<field
|
||||
name="event_id"
|
||||
attrs="{'invisible': [('event_id', '=', False)]}"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- Allows to search by event and group by event -->
|
||||
<record id="view_task_search_form" model="ir.ui.view">
|
||||
<field name="name">Filter and group tasks by event</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="project.view_task_search_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='partner_id']" position="after">
|
||||
<field name="event_id" />
|
||||
</xpath>
|
||||
<xpath expr="//group" position="inside">
|
||||
<filter
|
||||
string="Event"
|
||||
name="event"
|
||||
context="{'group_by': 'event_id'}"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Add related event to task form view -->
|
||||
<record id="view_task_form2" model="ir.ui.view">
|
||||
<field name="name">Add related event to task</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="project.view_task_form2" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='partner_id']" position="before">
|
||||
<field
|
||||
name="event_id"
|
||||
attrs="{'invisible': [('event_id', '=', False)]}"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue