diff --git a/calendar_event_kanban_stage/README.rst b/calendar_event_kanban_stage/README.rst new file mode 100644 index 00000000000..672eca1a70e --- /dev/null +++ b/calendar_event_kanban_stage/README.rst @@ -0,0 +1,59 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +=========================== +Calendar Event Kanban Stage +=========================== + +This module adds Kanban stage functionality to the calendar event. + +In addition, the following stages are created: + +* To plan +* Planned +* Done + +where the first one is set by default. + +Usage +===== + +* To manage stages, go to Settings > Technical > Kanban > Stages. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/149/10.0 + +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 +------------ + +* Alex Comba +* Lorenzo Battistini + + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/calendar_event_kanban_stage/__init__.py b/calendar_event_kanban_stage/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/calendar_event_kanban_stage/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/calendar_event_kanban_stage/__manifest__.py b/calendar_event_kanban_stage/__manifest__.py new file mode 100644 index 00000000000..778f076feb8 --- /dev/null +++ b/calendar_event_kanban_stage/__manifest__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Alex Comba - Agile Business Group +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). + +{ + 'name': 'Calendar Event Kanban Stage', + 'summary': 'Adds Kanban stage functionality to calendar event', + 'version': '10.0.1.0.0', + 'author': 'Agile Business Group, ' + 'Odoo Community Association (OCA)', + 'license': 'LGPL-3', + 'website': 'https://www.agilebg.com', + 'category': 'Tools', + 'depends': [ + 'calendar', + 'base_kanban_stage', + ], + 'data': [ + 'data/base_kanban_stage_data.xml', + 'views/calendar_event_view.xml', + ], + 'installable': True, +} diff --git a/calendar_event_kanban_stage/data/base_kanban_stage_data.xml b/calendar_event_kanban_stage/data/base_kanban_stage_data.xml new file mode 100644 index 00000000000..3ef9991b497 --- /dev/null +++ b/calendar_event_kanban_stage/data/base_kanban_stage_data.xml @@ -0,0 +1,28 @@ + + + + + + + To Plan + + + + + + + Planned + + + + + + + Done + + + + + + diff --git a/calendar_event_kanban_stage/models/__init__.py b/calendar_event_kanban_stage/models/__init__.py new file mode 100644 index 00000000000..ba757cbe502 --- /dev/null +++ b/calendar_event_kanban_stage/models/__init__.py @@ -0,0 +1 @@ +from . import calendar_event diff --git a/calendar_event_kanban_stage/models/calendar_event.py b/calendar_event_kanban_stage/models/calendar_event.py new file mode 100644 index 00000000000..3ec5b73b465 --- /dev/null +++ b/calendar_event_kanban_stage/models/calendar_event.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Alex Comba - Agile Business Group +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). + +from odoo import api, fields, models + + +class CalendarEvent(models.Model): + _name = 'calendar.event' + _inherit = ['calendar.event', 'base.kanban.abstract'] + + @api.multi + def _compute_attendees_count(self): + for event in self: + event.attendees_count = len(event.partner_ids) + + note = fields.Text("Internal Notes") + attendees_count = fields.Integer( + "Attendees", compute='_compute_attendees_count') diff --git a/calendar_event_kanban_stage/static/description/icon.png b/calendar_event_kanban_stage/static/description/icon.png new file mode 100644 index 00000000000..8472f444119 Binary files /dev/null and b/calendar_event_kanban_stage/static/description/icon.png differ diff --git a/calendar_event_kanban_stage/views/calendar_event_view.xml b/calendar_event_kanban_stage/views/calendar_event_view.xml new file mode 100644 index 00000000000..77f76ddbb1d --- /dev/null +++ b/calendar_event_kanban_stage/views/calendar_event_view.xml @@ -0,0 +1,91 @@ + + + + + + + Calendar - Event Form + calendar.event + + + +
+ +
+
+ +
+
+
+ + +
+
+ + + Meetings Popup + calendar.event + + + +
+ +
+
+ + + + +
+ + + + CRM - Meetings Search + calendar.event + + + + + + + + + + Calendar Event - Kanban View + calendar.event + primary + + + +
+
+ oe_kanban_text_red + +
+
+ + Attendees + Attendee +
+
+
+
+
+ + + + + + + + + kanban + + + +