-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
333 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
.. 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 | ||
|
||
===================================== | ||
Website Membership Contact Visibility | ||
===================================== | ||
|
||
This module was written to extend the functionality of the website to control | ||
membership contact information. Member contact information can now be set | ||
to be published or not. | ||
|
||
Installation | ||
============ | ||
|
||
To install this module, you need to: | ||
|
||
1. Clone the branch 9.0 of the repository https://github.com/OCA/vertical-association | ||
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 *Website Membership Contact Visibility* | ||
6. Install the module | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
1. Go to menu *Association -> Members -> Members* | ||
2. Then click on one of members name so get into form view | ||
3. Within the *Membership* tab, there will be a new field named *Visible In The Website* | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/208/9.0 | ||
|
||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/OCA/vertical-association/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 <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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 OpenSynergy Indonesia | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
'name': 'Website Membership Contact Visibility', | ||
'version': '9.0.1.0.0', | ||
'summary': 'Adding functionality to set ' | ||
'the visibility of contact information of each member', | ||
'author': 'OpenSynergy Indonesia,Odoo Community Association (OCA)', | ||
'website': 'https://opensynergy-indonesia.com', | ||
'category': 'Website', | ||
'depends': ['website_membership'], | ||
'data': [ | ||
'views/res_partner_view.xml', | ||
'views/website_membership.xml' | ||
], | ||
'installable': True, | ||
'license': 'AGPL-3', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_membership_contact_visibility | ||
# | ||
# Translators: | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: vertical-association (8.0)\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-02-26 02:03+0000\n" | ||
"PO-Revision-Date: 2016-02-25 14:32+0000\n" | ||
"Last-Translator: <>\n" | ||
"Language-Team: German (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/de/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: de\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: view:res.partner:website_membership_contact_visibility.membership_contact_visibility_form_view | ||
msgid "Membership" | ||
msgstr "" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: model:ir.model,name:website_membership_contact_visibility.model_res_partner | ||
msgid "Partner" | ||
msgstr "Partner" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: field:res.partner,website_membership_published:0 | ||
msgid "Visible Contact Info On The Website" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_membership_contact_visibility | ||
# | ||
# Translators: | ||
# Fabien Bourgeois <fabien@yaltik.com>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: vertical-association (8.0)\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-04-14 08:13+0000\n" | ||
"PO-Revision-Date: 2016-04-19 15:02+0000\n" | ||
"Last-Translator: Fabien Bourgeois <fabien@yaltik.com>\n" | ||
"Language-Team: French (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/fr/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: fr\n" | ||
"Plural-Forms: nplurals=2; plural=(n > 1);\n" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: view:res.partner:website_membership_contact_visibility.membership_contact_visibility_form_view | ||
msgid "Membership" | ||
msgstr "Adhésion" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: model:ir.model,name:website_membership_contact_visibility.model_res_partner | ||
msgid "Partner" | ||
msgstr "Contact" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: field:res.partner,website_membership_published:0 | ||
msgid "Visible Contact Info On The Website" | ||
msgstr "Coordonnées affichées sur le site Web" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_membership_contact_visibility | ||
# | ||
# Translators: | ||
# Marius Marolla <mariusmarolla@gmail.com>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: vertical-association (8.0)\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-04-30 00:57+0000\n" | ||
"PO-Revision-Date: 2016-07-19 15:52+0000\n" | ||
"Last-Translator: Marius Marolla <mariusmarolla@gmail.com>\n" | ||
"Language-Team: Italian (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/it/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: it\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: view:res.partner:website_membership_contact_visibility.membership_contact_visibility_form_view | ||
msgid "Membership" | ||
msgstr "Membri" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: model:ir.model,name:website_membership_contact_visibility.model_res_partner | ||
msgid "Partner" | ||
msgstr "Partner" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: field:res.partner,website_membership_published:0 | ||
msgid "Visible Contact Info On The Website" | ||
msgstr "Informazioni di Contatto visibili nel Sito Web" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_membership_contact_visibility | ||
# | ||
# Translators: | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: vertical-association (8.0)\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-08-15 23:30+0000\n" | ||
"PO-Revision-Date: 2016-02-25 14:32+0000\n" | ||
"Last-Translator: <>\n" | ||
"Language-Team: Dutch (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/nl/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: nl\n" | ||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: view:res.partner:website_membership_contact_visibility.membership_contact_visibility_form_view | ||
msgid "Membership" | ||
msgstr "" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: model:ir.model,name:website_membership_contact_visibility.model_res_partner | ||
msgid "Partner" | ||
msgstr "Relatie" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: field:res.partner,website_membership_published:0 | ||
msgid "Visible Contact Info On The Website" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * website_membership_contact_visibility | ||
# | ||
# Translators: | ||
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: vertical-association (8.0)\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-02-26 02:03+0000\n" | ||
"PO-Revision-Date: 2016-02-27 08:18+0000\n" | ||
"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>\n" | ||
"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-vertical-association-8-0/language/sl/)\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Language: sl\n" | ||
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: view:res.partner:website_membership_contact_visibility.membership_contact_visibility_form_view | ||
msgid "Membership" | ||
msgstr "Članarina" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: model:ir.model,name:website_membership_contact_visibility.model_res_partner | ||
msgid "Partner" | ||
msgstr "Partner" | ||
|
||
#. module: website_membership_contact_visibility | ||
#: field:res.partner,website_membership_published:0 | ||
msgid "Visible Contact Info On The Website" | ||
msgstr "Vidni kontaktni podatki na spletni strani" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 res_partner |
14 changes: 14 additions & 0 deletions
14
website_membership_contact_visibility/models/res_partner.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -*- 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 ResPartner(models.Model): | ||
_inherit = 'res.partner' | ||
|
||
website_membership_published = fields.Boolean( | ||
string='Visible Contact Info On The Website', | ||
copy=False, | ||
default=True) |
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
17
website_membership_contact_visibility/views/res_partner_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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="res_partner_form_view"> | ||
<field name="name">Partner - Membership Contact Visibility</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="membership.view_partner_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='associate_member']" position="after"> | ||
<field name="website_membership_published"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |
30 changes: 30 additions & 0 deletions
30
website_membership_contact_visibility/views/website_membership.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data> | ||
|
||
<template id="partner_contact_visibility" inherit_id="website_partner.partner_detail"> | ||
<xpath expr="//div[@class='col-md-4']" position="replace"> | ||
<t t-if="partner.website_membership_published == True"> | ||
<div class="col-md-4"> | ||
<div t-field="partner.image" t-field-options='{"widget": "image", "class": "center-block mb16"}'/> | ||
<address class="well"> | ||
<div t-field="partner.self" t-field-options='{ | ||
"widget": "contact", | ||
"fields": ["address", "website", "phone", "fax", "email"] | ||
}'/> | ||
</address> | ||
<t t-raw="left_column or ''"/> | ||
</div> | ||
</t> | ||
<t t-if="partner.website_membership_published == False"> | ||
<div class="col-md-4"> | ||
<div t-field="partner.image" t-field-options='{"widget": "image", "class": "center-block mb16"}'/> | ||
<t t-raw="left_column or ''"/> | ||
</div> | ||
</t> | ||
</xpath> | ||
</template> | ||
|
||
</data> | ||
</openerp> | ||
|