From 784dda29e259a01f908e10b6484b9dd7ea21ad5e Mon Sep 17 00:00:00 2001 From: Ioan Date: Thu, 24 Nov 2022 16:31:11 +0100 Subject: [PATCH 01/15] [15.0][ADD] website_whatsapp: Whatsapp integration --- website_whatsapp/README.rst | 91 ++++ website_whatsapp/__init__.py | 1 + website_whatsapp/__manifest__.py | 21 + website_whatsapp/i18n/website_whatsapp.pot | 72 +++ website_whatsapp/models/__init__.py | 2 + .../models/res_config_settings.py | 19 + website_whatsapp/models/website.py | 36 ++ website_whatsapp/readme/CONFIGURE.rst | 5 + website_whatsapp/readme/CONTRIBUTORS.rst | 2 + website_whatsapp/readme/DESCRIPTION.rst | 1 + website_whatsapp/static/description/icon.png | Bin 0 -> 29684 bytes .../static/description/index.html | 438 ++++++++++++++++++ website_whatsapp/static/src/scss/website.scss | 32 ++ website_whatsapp/templates/website.xml | 26 ++ .../views/res_config_settings.xml | 56 +++ 15 files changed, 802 insertions(+) create mode 100644 website_whatsapp/README.rst create mode 100644 website_whatsapp/__init__.py create mode 100644 website_whatsapp/__manifest__.py create mode 100644 website_whatsapp/i18n/website_whatsapp.pot create mode 100644 website_whatsapp/models/__init__.py create mode 100644 website_whatsapp/models/res_config_settings.py create mode 100644 website_whatsapp/models/website.py create mode 100644 website_whatsapp/readme/CONFIGURE.rst create mode 100644 website_whatsapp/readme/CONTRIBUTORS.rst create mode 100644 website_whatsapp/readme/DESCRIPTION.rst create mode 100644 website_whatsapp/static/description/icon.png create mode 100644 website_whatsapp/static/description/index.html create mode 100644 website_whatsapp/static/src/scss/website.scss create mode 100644 website_whatsapp/templates/website.xml create mode 100644 website_whatsapp/views/res_config_settings.xml diff --git a/website_whatsapp/README.rst b/website_whatsapp/README.rst new file mode 100644 index 0000000000..65ce8a5b31 --- /dev/null +++ b/website_whatsapp/README.rst @@ -0,0 +1,91 @@ +================ +Website Whatsapp +================ + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github + :target: https://github.com/OCA/website/tree/15.0/website_whatsapp + :alt: OCA/website +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/website-15-0/website-15-0-website_whatsapp + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/186/15.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Enable a WhatsApp floating button on the website to be able to send a message quickly + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module, you need to: + +#. Go to **Website > Configuration > Settings** +#. Search 'Use Whatsapp' option. +#. Fill in your 'WhatsApp number' and the other optional values + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Studio73 + +Contributors +~~~~~~~~~~~~ + +* `Studio73 `__: + * Ioan Galan + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +.. |maintainer-ioans73| image:: https://github.com/ioans73.png?size=40px + :target: https://github.com/ioans73 + :alt: ioans73 + +Current `maintainer `__: + +|maintainer-ioans73| + +This module is part of the `OCA/website `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_whatsapp/__init__.py b/website_whatsapp/__init__.py new file mode 100644 index 0000000000..0650744f6b --- /dev/null +++ b/website_whatsapp/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/website_whatsapp/__manifest__.py b/website_whatsapp/__manifest__.py new file mode 100644 index 0000000000..8b9c4a32c8 --- /dev/null +++ b/website_whatsapp/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2022 Studio73 - Ioan Galan +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Website Whatsapp", + "summary": "Whatsapp integration", + "category": "Website", + "version": "15.0.1.0.0", + "website": "https://github.com/OCA/website", + "author": "Studio73, Odoo Community Association (OCA)", + "maintainers": ["ioans73"], + "license": "AGPL-3", + "depends": ["website"], + "data": [ + "templates/website.xml", + "views/res_config_settings.xml", + ], + "assets": { + "web.assets_frontend": ["/website_whatsapp/static/src/scss/website.scss"] + }, + "installable": True, +} diff --git a/website_whatsapp/i18n/website_whatsapp.pot b/website_whatsapp/i18n/website_whatsapp.pot new file mode 100644 index 0000000000..0b46f3a30c --- /dev/null +++ b/website_whatsapp/i18n/website_whatsapp.pot @@ -0,0 +1,72 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * website_whatsapp +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.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" + +#. module: website_whatsapp +#: model_terms:ir.ui.view,arch_db:website_whatsapp.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: website_whatsapp +#: model:ir.model,name:website_whatsapp.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: website_whatsapp +#: model:ir.model.fields,field_description:website_whatsapp.field_res_config_settings__whatsapp_text +#: model:ir.model.fields,field_description:website_whatsapp.field_website__whatsapp_text +msgid "Default text for Whatsapp" +msgstr "" + +#. module: website_whatsapp +#: model:ir.model.fields,help:website_whatsapp.field_res_config_settings__whatsapp_text +#: model:ir.model.fields,help:website_whatsapp.field_website__whatsapp_text +msgid "Default text to send as message" +msgstr "" + +#. module: website_whatsapp +#: model:ir.model.fields,help:website_whatsapp.field_res_config_settings__whatsapp_track_url +#: model:ir.model.fields,help:website_whatsapp.field_website__whatsapp_track_url +msgid "" +"Indicate in the user's message the URL of the page from which it was sent" +msgstr "" + +#. module: website_whatsapp +#: model:ir.model.fields,field_description:website_whatsapp.field_res_config_settings__whatsapp_track_url +#: model:ir.model.fields,field_description:website_whatsapp.field_website__whatsapp_track_url +msgid "Track URL" +msgstr "" + +#. module: website_whatsapp +#: model:ir.model.fields,field_description:website_whatsapp.field_res_config_settings__whatsapp_enabled +msgid "Use Whatsapp" +msgstr "" + +#. module: website_whatsapp +#: model:ir.model,name:website_whatsapp.model_website +msgid "Website" +msgstr "" + +#. module: website_whatsapp +#: model:ir.model.fields,field_description:website_whatsapp.field_res_config_settings__whatsapp_number +#: model:ir.model.fields,field_description:website_whatsapp.field_website__whatsapp_number +msgid "WhatsApp number" +msgstr "" + +#. module: website_whatsapp +#: model_terms:ir.ui.view,arch_db:website_whatsapp.res_config_settings_view_form +msgid "You must add the mobile number with the country prefix" +msgstr "" diff --git a/website_whatsapp/models/__init__.py b/website_whatsapp/models/__init__.py new file mode 100644 index 0000000000..ba62e1412d --- /dev/null +++ b/website_whatsapp/models/__init__.py @@ -0,0 +1,2 @@ +from . import res_config_settings +from . import website diff --git a/website_whatsapp/models/res_config_settings.py b/website_whatsapp/models/res_config_settings.py new file mode 100644 index 0000000000..c274d5c34f --- /dev/null +++ b/website_whatsapp/models/res_config_settings.py @@ -0,0 +1,19 @@ +# Copyright 2022 Studio73 - Ioan Galan +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class Website(models.Model): + _inherit = "website" + + whatsapp_number = fields.Char(string="WhatsApp number") + whatsapp_text = fields.Char( + "Default text for Whatsapp", + help="Default text to send as message", + ) + whatsapp_track_url = fields.Boolean( + "Track URL", + help="Indicate in the user's message the URL of the page from which it " + "was sent", + ) diff --git a/website_whatsapp/models/website.py b/website_whatsapp/models/website.py new file mode 100644 index 0000000000..48a9cd60e8 --- /dev/null +++ b/website_whatsapp/models/website.py @@ -0,0 +1,36 @@ +# Copyright 2022 Studio73 - Ioan Galan +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + @api.depends("website_id.whatsapp_number") + def _compute_whatsapp_enabled(self): + for record in self: + record.update({"whatsapp_enabled": bool(record.whatsapp_number)}) + + def _inverse_whatsapp_enabled(self): + for record in self: + if not record.whatsapp_enabled: + record.website_id.update({"whatsapp_number": False}) + + whatsapp_number = fields.Char( + related="website_id.whatsapp_number", + readonly=False, + ) + whatsapp_text = fields.Char( + related="website_id.whatsapp_text", + readonly=False, + ) + whatsapp_track_url = fields.Boolean( + related="website_id.whatsapp_track_url", + readonly=False, + ) + whatsapp_enabled = fields.Boolean( + string="Use Whatsapp", + compute="_compute_whatsapp_enabled", + inverse="_inverse_whatsapp_enabled", + ) diff --git a/website_whatsapp/readme/CONFIGURE.rst b/website_whatsapp/readme/CONFIGURE.rst new file mode 100644 index 0000000000..69bce37d8e --- /dev/null +++ b/website_whatsapp/readme/CONFIGURE.rst @@ -0,0 +1,5 @@ +To configure this module, you need to: + +#. Go to **Website > Configuration > Settings** +#. Search 'Use Whatsapp' option. +#. Fill in your 'WhatsApp number' and the other optional values diff --git a/website_whatsapp/readme/CONTRIBUTORS.rst b/website_whatsapp/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..946245f774 --- /dev/null +++ b/website_whatsapp/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* `Studio73 `__: + * Ioan Galan diff --git a/website_whatsapp/readme/DESCRIPTION.rst b/website_whatsapp/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..676ff11fa3 --- /dev/null +++ b/website_whatsapp/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Enable a WhatsApp floating button on the website to be able to send a message quickly diff --git a/website_whatsapp/static/description/icon.png b/website_whatsapp/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..e8334ea826482d582ce8d326d91a51748e0a9cf1 GIT binary patch literal 29684 zcmXt81yEaE6RqLJixhX4;_k(1uwucjxO=f;#T`O%C&eKIcXxM+yHnf({OLFI4+G3Z z-h21nb9T?3-Eb9vEIKL?>Z@0;(B@N#J35#@WqyzgIK zU0r@^Yb77|kN^B`=1iym1Sa|eIV#)9VC*a&{-fScaOK?>b4&_+dGN~?65YLxA`My2 z=BYTnOIxcConFrLGPntN$gcDi8Sy_jGJXjlGu*m6apHPLzZ3Onf!z%ucD#IdY~S-} z>vO}49dCM_iTiDw-N^gdr(xK_K>08bd5@h;%wMW{Pg#t77vVz4;L>MtFLp88$#e5k z9`ozOjYNNcR{JNC<1?3WLkp@^P#6sp^qk?ol~G)R&Iwe7e6)<_{6OTvbS*w}djwOm3(sv8D( zqA!0okJk;1ym4w`*90-zyZOemg;qN*-DKoQ9KPSBUb+MYJlb7)q^6M0mg@vIl0h!3 z>CC;!XLc@Is1Gprvt7O+8PB=4Q?6w_EblqF1hTrk46%KB^gbqG8`*si#2U{gHC{aT z==q~XBZNypE^u*I-@?{>ms=H`9yXPGyg#_W@!t0N!zaky(p+31d+q0kPbM+RbFGO$;}xE6jQOTon#aS z__i({DOAoROm2sI4KCN*61jF*zkEVnf4)5|x8QzOTEee=~v1{@(fg4dQ9JDWwdV0IF)NAZGSkqZHMRco6Z(NcwOC$_K0nPq`V0 zGGXq^n^gTVp7I#!P6kAVjEO5(b zBy3q*~U#D0w_=#YuRIVLu$kAF)P&%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g%jwwHStiN${6cz4mGhG>jo6&SUy%sxM^UFF4jIf#UC{0;b8mQX6fcr z=U*cH^ggnnmJnnChxwTg6ElRu&JLE|pA+fl zCT23Ij%Qbg#)a<1G)i1XF}80T)F_{4**H;QSxLYmJF_G6Rbo$BR7m^X{3O%%a;sdU zoj$DFQrA&)&>{Hwe`Mp-7Rlva1$wV}O)ezqRWG0x$A?=cADf;tr4uwIAWRVb6^A*qC6yR! zBBAVnvnjEu2^)?rkH1+NzUANB(x-V4;_5CTGk}Gqdr9#l)FSm04IbmqR@KA@6w!YF z6?wv8m;oBx%uFGXiqXnLx_kj&)6>$gg(4VojrQ1uD&>v_cKUZJR}}l6?-0~aL!}-2 z=ffYFg{EMumW*SIp1X<@?7beI`@zbanyAdg|Cv8AzT9*K8OFx)c@>ciBR6}KmT@n^ zs*z!Gq&T0UYc={+>B z#pF@EhFAYrp`ZT=rN-n{Ekm-W8XDi-=T?#~qCoi{vwv1i)xbu6 zv@zioV$QK^(ovT+u81aUZ>j9Nd@I0yhM0#qQ}=V@JSE%-u6TXsU z?re3b0)OOJ8PyF<#3kkEG^@UeO4`^t@P8{v^YMX$`#+QY!emYJif4&z*XgNa5+nSL z3GjFqD2!lj;$6N6MM^$@7a$>_rY%Bf3NjL?5Vs&Nxwmw;kRH4!R(@)dAdV()u`N5F z*v0i7#Pd5?7jz(*i=}=|FmiYsynUO-h0{iJlcClZ&mZUf4*&gfw^4*9PaLBgH-j@e zX?Zlz=KjdHoV2hfZ#-Owd*s;tn*O?wHT3Fhp*h^hS4ytc8~6@% z-lImmdv_e_azfvV(dhY^X7$LBos&9UFBZwh(9^q6#be$JwHSPmBu~p(trGPZ**atd zb7iHJ)C@7Q8hC~=a(GdeB?gI_r*ZQ%k9Vl)aS)W2t8YB=yT)l%)6pC=4;cfm@%-<( Mik5PTqD9F60Gu3gS^xk5 literal 0 HcmV?d00001 diff --git a/website_whatsapp/static/description/index.html b/website_whatsapp/static/description/index.html new file mode 100644 index 0000000000..f7eb29f6a1 --- /dev/null +++ b/website_whatsapp/static/description/index.html @@ -0,0 +1,438 @@ + + + + + + +Website Whatsapp + + + +
+

Website Whatsapp

+ + +

Beta License: AGPL-3 OCA/website Translate me on Weblate Try me on Runbot

+

Enable a WhatsApp floating button on the website to be able to send a message quickly

+

Table of contents

+ +
+

Configuration

+

To configure this module, you need to:

+
    +
  1. Go to Website > Configuration > Settings
  2. +
  3. Search ‘Use Whatsapp’ option.
  4. +
  5. Fill in your ‘WhatsApp number’ and the other optional values
  6. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Studio73
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

ioans73

+

This module is part of the OCA/website project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/website_whatsapp/static/src/scss/website.scss b/website_whatsapp/static/src/scss/website.scss new file mode 100644 index 0000000000..ead644b778 --- /dev/null +++ b/website_whatsapp/static/src/scss/website.scss @@ -0,0 +1,32 @@ +#whatsapp_icon { + z-index: 9999; + position: fixed; + bottom: 50px; + right: 30px; + background: #01e675; + width: 50px; + height: 50px; + text-decoration: none; + -webkit-border-radius: 35px; + -moz-border-radius: 35px; + border-radius: 35px; + -webkit-transition: all 0.3s linear; + -moz-transition: all 0.3s ease; + -ms-transition: all 0.3s ease; + -o-transition: all 0.3s ease; + transition: all 0.3s ease; + border: 3px solid white; + display: flex; + justify-content: center; + align-items: center; + i { + color: #fff; + font-size: 30px; + } + @media (max-width: 576px) { + & { + bottom: 90px; + right: 10px; + } + } +} diff --git a/website_whatsapp/templates/website.xml b/website_whatsapp/templates/website.xml new file mode 100644 index 0000000000..c206c3163d --- /dev/null +++ b/website_whatsapp/templates/website.xml @@ -0,0 +1,26 @@ + + + + diff --git a/website_whatsapp/views/res_config_settings.xml b/website_whatsapp/views/res_config_settings.xml new file mode 100644 index 0000000000..af5f0d7136 --- /dev/null +++ b/website_whatsapp/views/res_config_settings.xml @@ -0,0 +1,56 @@ + + + + res.config.settings + + + +
+
+ +
+
+
+
+
+
+
+
From 22cc4d4074d93a1f7b62eb0153aaa3f8315c5ef1 Mon Sep 17 00:00:00 2001 From: Ioan Date: Tue, 17 Jan 2023 17:30:46 +0100 Subject: [PATCH 02/15] [MIG] website_whatsapp: Migration to 16.0 --- website_whatsapp/__manifest__.py | 2 +- .../models/res_config_settings.py | 35 ++++++++++++++----- website_whatsapp/models/website.py | 35 +++++-------------- .../views/res_config_settings.xml | 7 ++-- 4 files changed, 41 insertions(+), 38 deletions(-) diff --git a/website_whatsapp/__manifest__.py b/website_whatsapp/__manifest__.py index 8b9c4a32c8..a813512100 100644 --- a/website_whatsapp/__manifest__.py +++ b/website_whatsapp/__manifest__.py @@ -4,7 +4,7 @@ "name": "Website Whatsapp", "summary": "Whatsapp integration", "category": "Website", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "website": "https://github.com/OCA/website", "author": "Studio73, Odoo Community Association (OCA)", "maintainers": ["ioans73"], diff --git a/website_whatsapp/models/res_config_settings.py b/website_whatsapp/models/res_config_settings.py index c274d5c34f..48a9cd60e8 100644 --- a/website_whatsapp/models/res_config_settings.py +++ b/website_whatsapp/models/res_config_settings.py @@ -1,19 +1,36 @@ # Copyright 2022 Studio73 - Ioan Galan # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import fields, models +from odoo import api, fields, models -class Website(models.Model): - _inherit = "website" +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" - whatsapp_number = fields.Char(string="WhatsApp number") + @api.depends("website_id.whatsapp_number") + def _compute_whatsapp_enabled(self): + for record in self: + record.update({"whatsapp_enabled": bool(record.whatsapp_number)}) + + def _inverse_whatsapp_enabled(self): + for record in self: + if not record.whatsapp_enabled: + record.website_id.update({"whatsapp_number": False}) + + whatsapp_number = fields.Char( + related="website_id.whatsapp_number", + readonly=False, + ) whatsapp_text = fields.Char( - "Default text for Whatsapp", - help="Default text to send as message", + related="website_id.whatsapp_text", + readonly=False, ) whatsapp_track_url = fields.Boolean( - "Track URL", - help="Indicate in the user's message the URL of the page from which it " - "was sent", + related="website_id.whatsapp_track_url", + readonly=False, + ) + whatsapp_enabled = fields.Boolean( + string="Use Whatsapp", + compute="_compute_whatsapp_enabled", + inverse="_inverse_whatsapp_enabled", ) diff --git a/website_whatsapp/models/website.py b/website_whatsapp/models/website.py index 48a9cd60e8..c274d5c34f 100644 --- a/website_whatsapp/models/website.py +++ b/website_whatsapp/models/website.py @@ -1,36 +1,19 @@ # Copyright 2022 Studio73 - Ioan Galan # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import api, fields, models +from odoo import fields, models -class ResConfigSettings(models.TransientModel): - _inherit = "res.config.settings" +class Website(models.Model): + _inherit = "website" - @api.depends("website_id.whatsapp_number") - def _compute_whatsapp_enabled(self): - for record in self: - record.update({"whatsapp_enabled": bool(record.whatsapp_number)}) - - def _inverse_whatsapp_enabled(self): - for record in self: - if not record.whatsapp_enabled: - record.website_id.update({"whatsapp_number": False}) - - whatsapp_number = fields.Char( - related="website_id.whatsapp_number", - readonly=False, - ) + whatsapp_number = fields.Char(string="WhatsApp number") whatsapp_text = fields.Char( - related="website_id.whatsapp_text", - readonly=False, + "Default text for Whatsapp", + help="Default text to send as message", ) whatsapp_track_url = fields.Boolean( - related="website_id.whatsapp_track_url", - readonly=False, - ) - whatsapp_enabled = fields.Boolean( - string="Use Whatsapp", - compute="_compute_whatsapp_enabled", - inverse="_inverse_whatsapp_enabled", + "Track URL", + help="Indicate in the user's message the URL of the page from which it " + "was sent", ) diff --git a/website_whatsapp/views/res_config_settings.xml b/website_whatsapp/views/res_config_settings.xml index af5f0d7136..7e30cd2eff 100644 --- a/website_whatsapp/views/res_config_settings.xml +++ b/website_whatsapp/views/res_config_settings.xml @@ -4,8 +4,11 @@ res.config.settings - -
+ +
From cc01127ab69a9a5a1ca53178078514c4120def7d Mon Sep 17 00:00:00 2001 From: oca-ci Date: Mon, 30 Oct 2023 07:47:46 +0000 Subject: [PATCH 03/15] [UPD] Update website_whatsapp.pot --- website_whatsapp/i18n/website_whatsapp.pot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website_whatsapp/i18n/website_whatsapp.pot b/website_whatsapp/i18n/website_whatsapp.pot index 0b46f3a30c..0739f0a2fb 100644 --- a/website_whatsapp/i18n/website_whatsapp.pot +++ b/website_whatsapp/i18n/website_whatsapp.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 15.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" From 043eebaae24173aaa26fa812bbd84a3708adccfe Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 30 Oct 2023 07:51:44 +0000 Subject: [PATCH 04/15] [BOT] post-merge updates --- website_whatsapp/README.rst | 23 +++++----- .../static/description/index.html | 44 ++++++++++--------- 2 files changed, 36 insertions(+), 31 deletions(-) diff --git a/website_whatsapp/README.rst b/website_whatsapp/README.rst index 65ce8a5b31..d2bc47306a 100644 --- a/website_whatsapp/README.rst +++ b/website_whatsapp/README.rst @@ -2,10 +2,13 @@ Website Whatsapp ================ -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:2413e7d9763f41acaf645339a6e6e1e69a6d6b2178a0ff8bd962db8b5abbb003 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -14,16 +17,16 @@ Website Whatsapp :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github - :target: https://github.com/OCA/website/tree/15.0/website_whatsapp + :target: https://github.com/OCA/website/tree/16.0/website_whatsapp :alt: OCA/website .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/website-15-0/website-15-0-website_whatsapp + :target: https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_whatsapp :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/186/15.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=16.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| Enable a WhatsApp floating button on the website to be able to send a message quickly @@ -46,8 +49,8 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -86,6 +89,6 @@ Current `maintainer `__: |maintainer-ioans73| -This module is part of the `OCA/website `_ project on GitHub. +This module is part of the `OCA/website `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_whatsapp/static/description/index.html b/website_whatsapp/static/description/index.html index f7eb29f6a1..eec6bff9b3 100644 --- a/website_whatsapp/static/description/index.html +++ b/website_whatsapp/static/description/index.html @@ -1,20 +1,20 @@ - + - + Website Whatsapp