Skip to content

Commit

Permalink
Merge 52479b8 into e6d47ec
Browse files Browse the repository at this point in the history
  • Loading branch information
mikevhe18 committed Mar 16, 2016
2 parents e6d47ec + 52479b8 commit 8fc7f8a
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 0 deletions.
78 changes: 78 additions & 0 deletions event_contact_person/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
.. 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 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
=====

To set contact persons to event, you need to:

- Go to *Marketing -> Events -> Events*.
- Edit or create one.
- You will see a new field under field *Organizer* named *Contact Persons*

.. 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
<https://github.com/OCA/
event/issues/new?body=module:%20
event_contact_person%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

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

* Michael Viriyananda <viriyananda.michael@gmail.com>

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.
5 changes: 5 additions & 0 deletions event_contact_person/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# © 2016 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
16 changes: 16 additions & 0 deletions event_contact_person/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# © 2016 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
'name': 'Event Contact Person',
'version': '8.0.1.0.0',
'summary': 'Add contact persons to event',
'author': 'OpenSynergy Indonesia,Odoo Community Association (OCA)',
'website': 'https://opensynergy-indonesia.com',
'category': 'Marketing',
'depends': ['event'],
'data': ['views/event_view.xml'],
'installable': True,
'license': 'AGPL-3',
}
5 changes: 5 additions & 0 deletions event_contact_person/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# © 2016 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import event
16 changes: 16 additions & 0 deletions event_contact_person/models/event.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# © 2016 OpenSynergy Indonesia
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from openerp import fields, models


class event_event(models.Model):
_inherit = 'event.event'

contact_person_ids = fields.Many2many(
string='Contact Persons',
comodel_name='res.partner',
relation='event_contact_person_rel',
column1='event_id',
column2='partner_id')
Binary file added event_contact_person/static/description/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions event_contact_person/views/event_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<openerp>
<data>

<record model="ir.ui.view" id="event_contact_person_form_view">
<field name="name">Event Contact Person</field>
<field name="model">event.event</field>
<field name="inherit_id" ref="event.view_event_form"/>
<field name="arch" type="xml">
<field name="organizer_id" position="after">
<field name="contact_person_ids" widget="many2many_tags"/>
</field>
</field>
</record>

</data>
</openerp>

0 comments on commit 8fc7f8a

Please sign in to comment.