Skip to content

Commit

Permalink
[16.0][MIG] event_contact
Browse files Browse the repository at this point in the history
MT-1840
  • Loading branch information
edlopen committed May 8, 2024
1 parent 5441b55 commit aa63245
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 26 deletions.
24 changes: 18 additions & 6 deletions event_contact/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Event Contacts
: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/14.0/event_contact
:target: https://github.com/OCA/event/tree/16.0/event_contact
:alt: OCA/event
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/event-14-0/event-14-0-event_contact
:target: https://translation.odoo-community.org/projects/event-16-0/event-16-0-event_contact
: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=14.0
:target: https://runboat.odoo-community.org/builds?repo=OCA/event&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand All @@ -50,7 +50,7 @@ To set contacts for an event type, you need to:

#. Go to *Events > Configuration > Event Templates*.
#. Edit or create one.
#. You will see a new field on *Attendees Section* named *Contacts*.
#. You will see a new field under field *Tags* named *Contacts*.
#. After doing this, if you create an event and set it this type, the event
will get appended these contacts automatically.

Expand All @@ -60,7 +60,7 @@ 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_contact%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/event/issues/new?body=module:%20event_contact%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.

Expand All @@ -83,6 +83,7 @@ Contributors
* Jairo Llopis
* Alexandre Díaz
* Ernesto Tejeda
* Eduardo López <elp@moduon.team>

Maintainers
~~~~~~~~~~~
Expand All @@ -97,6 +98,17 @@ 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.

This module is part of the `OCA/event <https://github.com/OCA/event/tree/14.0/event_contact>`_ project on GitHub.
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
:target: https://github.com/rafaelbn
:alt: rafaelbn
.. |maintainer-edlopen| image:: https://github.com/edlopen.png?size=40px
:target: https://github.com/edlopen
:alt: edlopen

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-rafaelbn| |maintainer-edlopen|

This module is part of the `OCA/event <https://github.com/OCA/event/tree/16.0/event_contact>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 2 additions & 1 deletion event_contact/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@

{
"name": "Event Contacts",
"version": "14.0.1.0.0",
"version": "16.0.1.0.0",
"summary": "Add contacts to event and event type",
"author": "OpenSynergy Indonesia, "
"Tecnativa, "
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/event",
"category": "Marketing",
"depends": ["event"],
"maintainers": ["rafaelbn", "edlopen"],
"data": ["views/event_event_view.xml", "views/event_type_view.xml"],
"installable": True,
"license": "AGPL-3",
Expand Down
3 changes: 2 additions & 1 deletion event_contact/models/event_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ class EventEvent(models.Model):

@api.depends("event_type_id")
def _compute_contact_ids(self):
self.contact_ids |= self.event_type_id.contact_ids
for one in self:
one.contact_ids |= one.event_type_id.contact_ids
1 change: 1 addition & 0 deletions event_contact/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
* Jairo Llopis
* Alexandre Díaz
* Ernesto Tejeda
* Eduardo López <elp@moduon.team>
2 changes: 1 addition & 1 deletion event_contact/readme/USAGE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ To set contacts for an event type, you need to:

#. Go to *Events > Configuration > Event Templates*.
#. Edit or create one.
#. You will see a new field on *Attendees Section* named *Contacts*.
#. You will see a new field under field *Tags* named *Contacts*.
#. After doing this, if you create an event and set it this type, the event
will get appended these contacts automatically.
12 changes: 7 additions & 5 deletions event_contact/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!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>
Expand Down Expand Up @@ -369,7 +368,7 @@ <h1 class="title">Event Contacts</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bafc114c15b34c69ec046ec94097f24619a35662c8e3abebc37c63e541d60527
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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/14.0/event_contact"><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-14-0/event-14-0-event_contact"><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&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<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_contact"><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_contact"><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&amp;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 adds the possibility to define contacts for the event.
Contacts are needed due to inform the people who should be contacted for
the event.</p>
Expand Down Expand Up @@ -398,7 +397,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<ol class="arabic simple">
<li>Go to <em>Events &gt; Configuration &gt; Event Templates</em>.</li>
<li>Edit or create one.</li>
<li>You will see a new field on <em>Attendees Section</em> named <em>Contacts</em>.</li>
<li>You will see a new field under field <em>Tags</em> named <em>Contacts</em>.</li>
<li>After doing this, if you create an event and set it this type, the event
will get appended these contacts automatically.</li>
</ol>
Expand All @@ -408,7 +407,7 @@ <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_contact%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/event/issues/new?body=module:%20event_contact%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">
Expand All @@ -431,6 +430,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<li>Ernesto Tejeda</li>
</ul>
</li>
<li>Eduardo López &lt;<a class="reference external" href="mailto:elp&#64;moduon.team">elp&#64;moduon.team</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand All @@ -440,7 +440,9 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<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>This module is part of the <a class="reference external" href="https://github.com/OCA/event/tree/14.0/event_contact">OCA/event</a> project on GitHub.</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/rafaelbn"><img alt="rafaelbn" src="https://github.com/rafaelbn.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/edlopen"><img alt="edlopen" src="https://github.com/edlopen.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_contact">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>
Expand Down
14 changes: 2 additions & 12 deletions event_contact/views/event_type_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,8 @@
<field name="model">event.type</field>
<field name="inherit_id" ref="event.view_event_type_form" />
<field name="arch" type="xml">
<xpath expr="//div[@name='event_type_attendees']" position="inside">
<div class="col-12 col-lg-6 o_setting_box" name="event_type_contacts">
<div class="o_setting_left_pane" />
<div class="o_setting_right_pane">
<label for="contact_ids" />
<div class="row">
<div class="col-12 mt16">
<field name="contact_ids" widget="many2many_tags" />
</div>
</div>
</div>
</div>
<xpath expr="//field[@name='tag_ids']" position="after">
<field name="contact_ids" widget="many2many_tags" />
</xpath>
</field>
</record>
Expand Down
1 change: 1 addition & 0 deletions setup/event_contact/odoo/addons/event_contact
6 changes: 6 additions & 0 deletions setup/event_contact/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit aa63245

Please sign in to comment.