Browse Source

July 09: [FIX] Bug Fixed 'whatsapp_product_inquiry'

pull/331/head
RisvanaCybro 10 months ago
parent
commit
b9962b7ddd
  1. 7
      whatsapp_product_inquiry/__manifest__.py
  2. 7
      whatsapp_product_inquiry/doc/RELEASE_NOTES.md
  3. 62
      whatsapp_product_inquiry/i18n/es.po
  4. 13
      whatsapp_product_inquiry/static/src/css/style.css
  5. 2
      whatsapp_product_inquiry/views/website_sale_templates.xml

7
whatsapp_product_inquiry/__manifest__.py

@ -20,7 +20,7 @@
###############################################################################
{
'name': "Whatsapp Product Inquiry In Website",
'version': '17.0.1.0.0',
'version': '17.0.1.1.0',
'category': 'eCommerce',
'summary': 'Customers can inquire Website product details through Whatsapp',
'description': """By installing this module, there will be an Inquire
@ -35,6 +35,11 @@
'views/res_company_views.xml',
'views/website_sale_templates.xml'
],
'assets': {
'web.assets_frontend': [
'whatsapp_product_inquiry/static/src/css/style.css',
],
},
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,

7
whatsapp_product_inquiry/doc/RELEASE_NOTES.md

@ -4,3 +4,10 @@
#### ADD
- Initial commit for Whatsapp Product Inquiry In Website
## Module <whatsapp_product_inquiry>
#### 08.07.2024
#### Version 17.0.1.1.0
#### UPDATE
- Updated style issue of the Whatsapp inquiry button in Website added a Spanish translation to the module.

62
whatsapp_product_inquiry/i18n/es.po

@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * whatsapp_product_inquiry
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-07-08 06:15+0000\n"
"PO-Revision-Date: 2024-07-08 06:15+0000\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: whatsapp_product_inquiry
#: model_terms:ir.ui.view,arch_db:whatsapp_product_inquiry.whatsapp_inquiry
msgid ""
"<i class=\"fa fa-whatsapp mr-2\"/>\n"
" <span style=\"font-weight: bold\">INQUIRE</span>"
msgstr "<i class=\"fa fa-whatsapp mr-2\"/>\n"
" <span style=\"font-weight: bold\">indagar dentro</span>"
#. module: whatsapp_product_inquiry
#: model:ir.model,name:whatsapp_product_inquiry.model_res_company
msgid "Companies"
msgstr "Compañías"
#. module: whatsapp_product_inquiry
#: model:ir.model.fields,field_description:whatsapp_product_inquiry.field_res_company__message
msgid "Message"
msgstr "Mensaje"
#. module: whatsapp_product_inquiry
#: model:ir.model.fields,help:whatsapp_product_inquiry.field_res_company__whatsapp_number
msgid ""
"The Company Whatsapp Number to which the Inquiry messages has to be received"
msgstr "El número de Whatsapp de la empresa al que se deben recibir los mensajes de consulta."
#. module: whatsapp_product_inquiry
#: model:ir.model.fields,help:whatsapp_product_inquiry.field_res_company__message
msgid "This will be the Inquiry message"
msgstr "Este será el mensaje de consulta."
#. module: whatsapp_product_inquiry
#: model_terms:ir.ui.view,arch_db:whatsapp_product_inquiry.view_company_form
msgid "Whatsapp Configuration"
msgstr "Configuración de whatsapp"
#. module: whatsapp_product_inquiry
#: model:ir.model.fields,field_description:whatsapp_product_inquiry.field_res_company__whatsapp_number
msgid "Whatsapp Number"
msgstr "Número de whatsapp"
#. module: whatsapp_product_inquiry
#. odoo-python
#: code:addons/whatsapp_product_inquiry/models/res_company.py:0
#, python-format
msgid "Whatsapp Number should be valid number without any space or signs"
msgstr "El número de Whatsapp debe ser un número válido sin espacios ni signos."

13
whatsapp_product_inquiry/static/src/css/style.css

@ -0,0 +1,13 @@
/** Inquire Button styling at different screen size **/
@media (max-width:440px) {
div#product_details #whatsapp_inquiry_wrap{
margin-left: 0%;
}
}
@media (max-width:1390px) {
div#product_details #whatsapp_inquiry_wrap{
margin-left: 0%;
}
}

2
whatsapp_product_inquiry/views/website_sale_templates.xml

@ -5,7 +5,7 @@
name="Product Whatsapp Inquiry">
<xpath expr="//div[@id='add_to_cart_wrap']" position="after">
<div id="whatsapp_inquiry_wrap"
style="padding-left:0.2px;margin-left: -125px"
style="padding-left:0.2px;"
class="d-inline-flex align-items-center mb-2 me-auto"
t-if="bool(request.website.get_current_website().company_id.whatsapp_number)">
<a role="button" id="whatsapp_inquiry_link"

Loading…
Cancel
Save