diff --git a/event_contact_person/README.rst b/event_contact_person/README.rst new file mode 100644 index 000000000..887a7dacd --- /dev/null +++ b/event_contact_person/README.rst @@ -0,0 +1,71 @@ +.. 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 + +==================== +Event Contact Person +==================== + +This module adds the possibility to define a contact persons for +the event. Contact person is needed due to inform the people +who should be contacted for the event + +Installation +============ + +To install this module, you need to: + +1. Clone the branch 8.0 of the repository https://github.com/OCA/event +2. Add the path to this repository in your configuration (addons-path) +3. Update the module list +4. Go to menu *Setting -> Modules -> Local Modules* +5. Search For *Event Contact Person* +6. Install the module + +Usage +===== +.. 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 +`_. 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 +`_. + + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Michael Viriyananda + +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/event_contact_person/__init__.py b/event_contact_person/__init__.py new file mode 100644 index 000000000..5bab01e1b --- /dev/null +++ b/event_contact_person/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2016 Michael Viriyananda +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agp + +from . import models diff --git a/event_contact_person/__openerp__.py b/event_contact_person/__openerp__.py new file mode 100644 index 000000000..a27a079d3 --- /dev/null +++ b/event_contact_person/__openerp__.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# © 2016 Michael Viriyananda +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agp + +{ + 'name': 'Event Contact Person', + 'version': '8.0.1.0.0', + 'author': 'Michael Viriyananda,Odoo Community Association (OCA)', + 'website': 'https://github.com/mikevhe18', + 'category': 'Marketing', + 'depends': ['event'], + 'data': ['views/event_view.xml'], + 'installable': True, + 'license': 'AGPL-3', +} diff --git a/event_contact_person/models/__init__.py b/event_contact_person/models/__init__.py new file mode 100644 index 000000000..582191d8c --- /dev/null +++ b/event_contact_person/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2016 Michael Viriyananda +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agp + +from . import event diff --git a/event_contact_person/models/event.py b/event_contact_person/models/event.py new file mode 100644 index 000000000..f05a5ef4e --- /dev/null +++ b/event_contact_person/models/event.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +# © 2016 Michael Viriyananda +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agp + +from openerp import fields, models + + +class event_event(models.Model): + _name = 'event.event' + _inherit = 'event.event' + + contact_person_ids = fields.Many2many( + string='Contact Person', + comodel_name='res.partner', + relation='event_contact_person_rel', + column1='event_id', + column2='partner_id') diff --git a/event_contact_person/static/description/icon.png b/event_contact_person/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/event_contact_person/static/description/icon.png differ diff --git a/event_contact_person/views/event_view.xml b/event_contact_person/views/event_view.xml new file mode 100644 index 000000000..a7ad5a224 --- /dev/null +++ b/event_contact_person/views/event_view.xml @@ -0,0 +1,17 @@ + + + + + + Event Contact Person + event.event + + + + + + + + + +