diff --git a/whatsapp_product_inquiry/README.rst b/whatsapp_product_inquiry/README.rst new file mode 100755 index 000000000..4090177ff --- /dev/null +++ b/whatsapp_product_inquiry/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Whatsapp Product Inquiry in Website +=================================== +Customers can inquire Website product details through Whatsapp. + +Configuration +============= +* No additional configurations needed + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: (V15) Unnimaya C O, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/whatsapp_product_inquiry/__init__.py b/whatsapp_product_inquiry/__init__.py new file mode 100644 index 000000000..b715a9d1f --- /dev/null +++ b/whatsapp_product_inquiry/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import controllers +from . import models diff --git a/whatsapp_product_inquiry/__manifest__.py b/whatsapp_product_inquiry/__manifest__.py new file mode 100644 index 000000000..b709a4f9b --- /dev/null +++ b/whatsapp_product_inquiry/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': "Whatsapp Product Inquiry in Website", + 'version': '15.0.1.0.0', + 'category': 'Website', + 'summary': 'Customers can inquire product details through Whatsapp', + 'description': """By installing this module, there will be an Inquire + button in product page of Website sale. By clicking that button customer + can inquire product details through Whatsapp""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['website_sale'], + 'data': [ + 'views/res_company_views.xml', + 'views/whatsapp_product_inquiry_template.xml' + ], + 'assets': { + 'web.assets_frontend': [ + 'whatsapp_product_inquiry/static/src/js/whatsapp_product_inquiry.js' + ] + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/whatsapp_product_inquiry/controllers/__init__.py b/whatsapp_product_inquiry/controllers/__init__.py new file mode 100644 index 000000000..b320c3afd --- /dev/null +++ b/whatsapp_product_inquiry/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import whatsapp_product_inquiry diff --git a/whatsapp_product_inquiry/controllers/whatsapp_product_inquiry.py b/whatsapp_product_inquiry/controllers/whatsapp_product_inquiry.py new file mode 100644 index 000000000..f6ccfec71 --- /dev/null +++ b/whatsapp_product_inquiry/controllers/whatsapp_product_inquiry.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +import werkzeug +from odoo import http +from odoo.http import request +from odoo.addons.website_sale.controllers.main import WebsiteSale + + +class WebsiteSale(WebsiteSale): + """For adding the whatsapp_product_inquiry and whatsapp_number_validator + functions""" + + @http.route(['/whatsapp_number/validator'], type='json', auth="public", + website=True) + def whatsapp_number_validator(self, **kw): + """If company Whatsapp number is added, it returns true.""" + return bool(request.website.get_current_website().company_id. + whatsapp_number) + + @http.route(['/whatsapp/inquiry/'], type='http', + auth="public", website=True) + def whatsapp_product_inquiry(self, **kw): + """Redirect to whatsapp web page""" + return werkzeug.utils.redirect("https://wa.me/%s?text=%s" % ( + request.website.get_current_website().company_id.whatsapp_number, + request.website.get_current_website().company_id.message + + '\nProduct Url: ' + + request.website.get_base_url() + + request.env['product.product'].browse(kw['product']).website_url)) diff --git a/whatsapp_product_inquiry/doc/RELEASE_NOTES.md b/whatsapp_product_inquiry/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..68545ca86 --- /dev/null +++ b/whatsapp_product_inquiry/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 18.10.2023 +#### Version 15.0.1.0.0 +#### ADD + +- Initial commit for Whatsapp Product Inquiry in Website diff --git a/whatsapp_product_inquiry/models/__init__.py b/whatsapp_product_inquiry/models/__init__.py new file mode 100644 index 000000000..602d5b836 --- /dev/null +++ b/whatsapp_product_inquiry/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import res_company diff --git a/whatsapp_product_inquiry/models/res_company.py b/whatsapp_product_inquiry/models/res_company.py new file mode 100644 index 000000000..11e716b1c --- /dev/null +++ b/whatsapp_product_inquiry/models/res_company.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import api, fields, models, _ +from odoo.exceptions import UserError + + +class ResCompany(models.Model): + """Inherits res_company for adding the Whatsapp fields""" + _inherit = 'res.company' + + whatsapp_number = fields.Char(string='Number', + help="The Company Whatsapp Number to " + "which the Inquiry messages has to" + " be received") + message = fields.Text(string='Message', + default="I want to know more details of the product", + help="This will be the Inquiry message") + + @api.constrains('whatsapp_number') + def _check_whatsapp_number(self): + """Function for validating the Mobile number""" + if self.whatsapp_number: + if not self.whatsapp_number.isnumeric() or not len( + self.whatsapp_number) > 8 or ' ' in self.whatsapp_number: + raise UserError(_('Whatsapp Number should be valid number' + ' without any space or signs')) diff --git a/whatsapp_product_inquiry/static/description/assets/icons/check.png b/whatsapp_product_inquiry/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/check.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/chevron.png b/whatsapp_product_inquiry/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/chevron.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/cogs.png b/whatsapp_product_inquiry/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/cogs.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/consultation.png b/whatsapp_product_inquiry/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/consultation.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/ecom-black.png b/whatsapp_product_inquiry/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/ecom-black.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/education-black.png b/whatsapp_product_inquiry/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/education-black.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/hotel-black.png b/whatsapp_product_inquiry/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/hotel-black.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/license.png b/whatsapp_product_inquiry/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/license.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/lifebuoy.png b/whatsapp_product_inquiry/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/lifebuoy.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/logo.png b/whatsapp_product_inquiry/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/logo.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/manufacturing-black.png b/whatsapp_product_inquiry/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/manufacturing-black.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/pos-black.png b/whatsapp_product_inquiry/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/pos-black.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/puzzle.png b/whatsapp_product_inquiry/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/puzzle.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/restaurant-black.png b/whatsapp_product_inquiry/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/restaurant-black.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/service-black.png b/whatsapp_product_inquiry/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/service-black.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/trading-black.png b/whatsapp_product_inquiry/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/trading-black.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/training.png b/whatsapp_product_inquiry/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/training.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/update.png b/whatsapp_product_inquiry/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/update.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/user.png b/whatsapp_product_inquiry/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/user.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/icons/wrench.png b/whatsapp_product_inquiry/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/icons/wrench.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/modules/insta_feed.png b/whatsapp_product_inquiry/static/description/assets/modules/insta_feed.png new file mode 100644 index 000000000..94318a840 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/modules/insta_feed.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/modules/live_chat.png b/whatsapp_product_inquiry/static/description/assets/modules/live_chat.png new file mode 100644 index 000000000..3664700f5 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/modules/live_chat.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/modules/product_visibility.png b/whatsapp_product_inquiry/static/description/assets/modules/product_visibility.png new file mode 100644 index 000000000..b4c3395f7 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/modules/product_visibility.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/modules/redirect.png b/whatsapp_product_inquiry/static/description/assets/modules/redirect.png new file mode 100644 index 000000000..f5174ab22 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/modules/redirect.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/modules/send_message.png b/whatsapp_product_inquiry/static/description/assets/modules/send_message.png new file mode 100644 index 000000000..f5174ab22 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/modules/send_message.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/modules/website_floating_whatsapp_icon.png b/whatsapp_product_inquiry/static/description/assets/modules/website_floating_whatsapp_icon.png new file mode 100644 index 000000000..3db55f3c1 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/modules/website_floating_whatsapp_icon.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/modules/whatsapp_integrate.gif b/whatsapp_product_inquiry/static/description/assets/modules/whatsapp_integrate.gif new file mode 100644 index 000000000..c51b9eb07 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/modules/whatsapp_integrate.gif differ diff --git a/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot0.png b/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot0.png new file mode 100644 index 000000000..3c8d12325 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot0.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot1.png b/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot1.png new file mode 100644 index 000000000..292f5c940 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot1.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot2.png b/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot2.png new file mode 100644 index 000000000..ac051a3cf Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot2.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot3.png b/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot3.png new file mode 100644 index 000000000..a5c1705e0 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot3.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot4.png b/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot4.png new file mode 100644 index 000000000..1bd6cca07 Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/screenshots/Screenshot4.png differ diff --git a/whatsapp_product_inquiry/static/description/assets/screenshots/hero.gif b/whatsapp_product_inquiry/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..43f43ea5b Binary files /dev/null and b/whatsapp_product_inquiry/static/description/assets/screenshots/hero.gif differ diff --git a/whatsapp_product_inquiry/static/description/banner.jpg b/whatsapp_product_inquiry/static/description/banner.jpg new file mode 100644 index 000000000..0e505a04e Binary files /dev/null and b/whatsapp_product_inquiry/static/description/banner.jpg differ diff --git a/whatsapp_product_inquiry/static/description/icon.png b/whatsapp_product_inquiry/static/description/icon.png new file mode 100644 index 000000000..f9f73a6ab Binary files /dev/null and b/whatsapp_product_inquiry/static/description/icon.png differ diff --git a/whatsapp_product_inquiry/static/description/index.html b/whatsapp_product_inquiry/static/description/index.html new file mode 100644 index 000000000..90cd61333 --- /dev/null +++ b/whatsapp_product_inquiry/static/description/index.html @@ -0,0 +1,567 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+
+
+

+ Whatsapp Product Inquiry in Website

+

+ Customers Can Inquire Website Product Details Through Whatsapp +

+ +
+
+ +
+
+

+ Overview +

+
+
+

+ By installing this module, there will be an Inquire button in + product page of website sale. On clicking that button customer + can inquire product details through Whatsapp. +

+
+
+
+
+

+ Features +

+
+
+
+ +
+
+

+ Customers can Inquire product details through + Whatsapp.

+
+
+
+
+ +
+
+

+ Possibility of changing the Whatsapp Default Message.

+
+
+
+
+ +
+
+

+ Product url attached with the Whatsapp Message.

+
+
+
+
+
+
+
+

+ Website product page before adding Company Whatsapp Number.

+ +
+
+

+ Add Number and Message under Whatsapp Configuration.

+ +
+
+

+ INQUIRE button in shop product page.

+ +
+
+

+ Redirects to Whatsapp Web page. +

+ +
+
+

+ Received message in Whatsapp.

+ +
+
+ +
+
+

Suggested Products

+
+ +
+
+ + +
+
+
+

Our Services

+
+
+
+
+ +
+
+ Odoo + Customization
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Support
+
+
+
+ +
+
+ Hire + Odoo + Developer
+
+
+
+ +
+
+ Odoo + Integration
+
+
+
+ +
+
+ Odoo + Migration
+
+
+
+ +
+
+ Odoo + Consultancy
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + +
+
+
+

Our Industries

+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + +
+
+
+

Need Help?

+
+
+
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ +
+ + diff --git a/whatsapp_product_inquiry/static/src/js/whatsapp_product_inquiry.js b/whatsapp_product_inquiry/static/src/js/whatsapp_product_inquiry.js new file mode 100755 index 000000000..8998d3a83 --- /dev/null +++ b/whatsapp_product_inquiry/static/src/js/whatsapp_product_inquiry.js @@ -0,0 +1,15 @@ +odoo.define('whatsapp_product_inquiry.WebsiteSaleController', function (require) { + "use strict"; + var ajax = require('web.ajax') + function whatsappNumberValidator() { + //Function for checking the company whatsapp number + ajax.jsonRpc('/whatsapp_number/validator', 'call', { + }).then(function(data){ + if (data==true) { + //If whatsapp number added, Inquire button will be visible + self.$("#whatsapp_inquiry_link").show(); + } + }); + }; + whatsappNumberValidator(); +}); diff --git a/whatsapp_product_inquiry/views/res_company_views.xml b/whatsapp_product_inquiry/views/res_company_views.xml new file mode 100644 index 000000000..694354ebd --- /dev/null +++ b/whatsapp_product_inquiry/views/res_company_views.xml @@ -0,0 +1,21 @@ + + + + + + res.company.view.form.inherit.whatsapp.product.inquiry + + + res.company + + + + + + + + + + + + diff --git a/whatsapp_product_inquiry/views/whatsapp_product_inquiry_template.xml b/whatsapp_product_inquiry/views/whatsapp_product_inquiry_template.xml new file mode 100644 index 000000000..4cdf8558a --- /dev/null +++ b/whatsapp_product_inquiry/views/whatsapp_product_inquiry_template.xml @@ -0,0 +1,21 @@ + + + + +