Skip to content

Commit

Permalink
Merge cc2c19f into 35d443c
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinamartinrod committed Feb 14, 2019
2 parents 35d443c + cc2c19f commit 547c400
Show file tree
Hide file tree
Showing 9 changed files with 132 additions and 0 deletions.
65 changes: 65 additions & 0 deletions website_event_share/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
.. 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 Share
===========

This module brings the users the possibility to globally enable/disable a share
links block that will be displayed in every event post.

Usage
=====

1. Go to the website events menu.
2. Open one of your events.
3. Click on the customize button.
4. Toggle the share button option to enable/disable the share links block.

NB: Although you set the option from a specific event, every event is going to
be set as well.

.. 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/12.0

Know issues / Roadmap
=====================

* Share event configuration is set on all events. No individual configuration
for each event

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.

Credits
=======

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

* Andhitia Rama <andhitia.r@gmail.com>
* Vicent Cubells <vicent.cubells@tecnativa.com>
* David Vidal <david.vidal@tecnativa.com>
* Cristina Martin R.

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.
1 change: 1 addition & 0 deletions website_event_share/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
20 changes: 20 additions & 0 deletions website_event_share/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2016 OpenSynergy Indonesia
# Copyright 2016 Tecnativa - Vicent Cubells
# Copyright 2017 Tecnativa - David Vidal
# Copyright 2019 Tecnativa - Cristina Martin R.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
'name': 'Event Share',
'version': '12.0.1.0.0',
'summary': 'Share your events via social media',
'author': 'OpenSynergy Indonesia,'
'Tecnativa, '
'Odoo Community Association (OCA)',
'website': 'https://opensynergy-indonesia.com',
'category': 'Marketing',
'depends': ['website_event'],
'data': ['views/website_event.xml'],
'installable': True,
'license': 'AGPL-3',
}
14 changes: 14 additions & 0 deletions website_event_share/i18n/website_event_share.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.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"

7 changes: 7 additions & 0 deletions website_event_share/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* Andhitia Rama <andhitia.r@gmail.com>

* `Tecnativa <https://www.tecnativa.com>`__:

* Vicent Cubells
* David Vidal
* Cristina Martin R.
2 changes: 2 additions & 0 deletions website_event_share/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module brings the users the possibility to globally enable/disable a share
links block that will be displayed in every event post.
7 changes: 7 additions & 0 deletions website_event_share/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
1. Go to the website events menu.
2. Open one of your events.
3. Click on the customize button.
4. Toggle the share button option to enable/disable the share links block.

NB: Although you set the option from a specific event, every event is going to
be set as well.
Binary file added website_event_share/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.
16 changes: 16 additions & 0 deletions website_event_share/views/website_event.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2016 OpenSynergy Indonesia
Copyright 2016 Tecnativa - Vicent Cubells
Copyright 2017 Tecnativa - David Vidal
Copyright 2019 Tecnativa - Cristina Martin R.
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
<odoo>
<template id="event_share" name="Share Button" inherit_id="website_event.event_details" customize_show="True">
<xpath expr="//h4[@t-field='event.address_id']" position="after">
<t t-call="website.s_share">
<t t-set="_classes" t-value="'text-center pt16 pb16'"/>
<t t-set="_no_title" t-value="True"/>
</t>
</xpath>
</template>
</odoo>

0 comments on commit 547c400

Please sign in to comment.