Browse Source

Commit Inicial

Edgar Ortigoza 8 years ago
commit
1ddfd5f85d
7 changed files with 143 additions and 0 deletions
  1. 55 0
      README.rst
  2. 3 0
      __init__.py
  3. 19 0
      __openerp__.py
  4. 24 0
      i18n/it.po
  5. 24 0
      i18n/sl.po
  6. BIN
      static/description/icon.png
  7. 18 0
      views/website_product.xml

+ 55 - 0
README.rst

@@ -0,0 +1,55 @@
+.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
+    :alt: License
+
+Product Share
+============
+This module brings the users the possibility to globally enable/disable a share button 
+that will be displayed in each product page.
+
+Usage
+=====
+
+1. Go to website
+2. Open one of the product
+3. Click on customize button
+4. Toggle share product option to enable/disable share button
+
+NB: even if you have to go to one specific product, the set up is valid for all of them.
+
+Know issues / Roadmap
+=====================
+* Share product configuration valid for all products. No individual configuration for each product.
+
+
+
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub Issues <https://github.com/OCA/e-commerce/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
+`here <https://github.com/OCA/e-commerce/issues/new?body=module:%20website_product_share%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
+
+
+Credits
+=======
+
+Contributors
+------------
+
+* Andhitia Rama <andhitia.r@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.

+ 3 - 0
__init__.py

@@ -0,0 +1,3 @@
+# -*- coding: utf-8 -*-
+# © 2016 Andhitia Rama <andhitia.r@gmail.com>
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

+ 19 - 0
__openerp__.py

@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# © 2016 Andhitia Rama <andhitia.r@gmail.com>
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+{
+    "name": "Product Share",
+    "version": "8.0.1.0.0",
+    "author": "Andhitia Rama,Odoo Community Association (OCA)",
+    "website": "https://opensynergy-indonesia.com",
+    "license": "AGPL-3",
+    "category": "Website",
+    "depends": [
+        "website_sale",
+    ],
+    "data": [
+        "views/website_product.xml",
+    ],
+    "active": False,
+    'installable': True
+}

+ 24 - 0
i18n/it.po

@@ -0,0 +1,24 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * website_product_share
+# 
+# Translators:
+# Paolo Valier, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: e-commerce (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-03-29 10:28+0000\n"
+"PO-Revision-Date: 2016-03-29 13:44+0000\n"
+"Last-Translator: Paolo Valier\n"
+"Language-Team: Italian (http://www.transifex.com/oca/OCA-e-commerce-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_product_share
+#: view:website:website_sale.product
+msgid "Share"
+msgstr "Condividi"

+ 24 - 0
i18n/sl.po

@@ -0,0 +1,24 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * website_product_share
+# 
+# Translators:
+# Matjaž Mozetič <m.mozetic@matmoz.si>, 2016
+msgid ""
+msgstr ""
+"Project-Id-Version: e-commerce (8.0)\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2016-03-29 10:28+0000\n"
+"PO-Revision-Date: 2016-04-01 04:52+0000\n"
+"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>\n"
+"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-e-commerce-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_product_share
+#: view:website:website_sale.product
+msgid "Share"
+msgstr "Souporabi"

BIN
static/description/icon.png


+ 18 - 0
views/website_product.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+  <data>
+    <template id="product_share" name="Share Button" inherit_id="website_sale.product" active="False" customize_show="True">
+        <xpath expr="//p[@class='text-muted']" position="after">
+            <div class="oe_share s_share">
+                  <h3>Share 
+                    <a class="oe_share_facebook" t-attf-href="https://www.facebook.com/sharer/sharer.php?u={url}" target="_Blank"><i class="fa fa-facebook-square"/> </a>
+                    <a class="oe_share_twitter" t-attf-href="https://twitter.com/intent/tweet?text={{product.website_meta_title}}&amp;url={url}" target="_Blank"><i class="fa fa-twitter"/> </a>
+                    <a class="oe_share_linkedin" t-attf-href="http://www.linkedin.com/shareArticle?mini=true&amp;url={url}&amp;title={{product.website_meta_title}}" target="_Blank"><i class="fa fa-linkedin"/> </a>
+                    <a class="oe_share_google" t-attf-href="https://plus.google.com/share?url={url}" target="_Blank"><i class="fa fa-google-plus-square"/> </a>
+                    <a href="mailto:?body={url}&amp;subject={title}"><i class="fa fa-envelope-o"></i></a>                    
+                    </h3>
+                </div>
+        </xpath>
+  </template>
+</data>
+</openerp>