From ef876db52cc9ede23df9163da0e6dad4df95a623 Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Fri, 6 Jun 2025 15:43:28 +0530 Subject: [PATCH] Jun 06: [FIX] Bug Fixed 'web_pay_shipping_methods' --- web_pay_shipping_methods/README.rst | 0 web_pay_shipping_methods/__init__.py | 2 +- web_pay_shipping_methods/__manifest__.py | 2 +- .../controllers/__init__.py | 20 ++++++++++++ web_pay_shipping_methods/controllers/main.py | 30 ++++++++++++++++++ web_pay_shipping_methods/doc/RELEASE_NOTES.md | 0 web_pay_shipping_methods/models/__init__.py | 0 .../models/payment_provider.py | 14 +++----- .../description/assets/icons/capture (1).png | Bin .../static/description/assets/icons/check.png | Bin .../description/assets/icons/chevron.png | Bin .../static/description/assets/icons/cogs.png | Bin .../description/assets/icons/consultation.png | Bin .../description/assets/icons/ecom-black.png | Bin .../assets/icons/education-black.png | Bin .../description/assets/icons/hotel-black.png | Bin .../static/description/assets/icons/img.png | Bin .../description/assets/icons/license.png | Bin .../description/assets/icons/lifebuoy.png | Bin .../assets/icons/manufacturing-black.png | Bin .../assets/icons/photo-capture.png | Bin .../description/assets/icons/pos-black.png | Bin .../description/assets/icons/puzzle.png | Bin .../assets/icons/restaurant-black.png | Bin .../assets/icons/service-black.png | Bin .../assets/icons/trading-black.png | Bin .../description/assets/icons/training.png | Bin .../description/assets/icons/update.png | Bin .../static/description/assets/icons/user.png | Bin .../description/assets/icons/wrench.png | Bin .../description/assets/misc/Cybrosys R.png | Bin .../description/assets/misc/categories.png | Bin .../description/assets/misc/check-box.png | Bin .../description/assets/misc/compass.png | Bin .../description/assets/misc/corporate.png | Bin .../assets/misc/customer-support.png | Bin .../description/assets/misc/cybrosys-logo.png | Bin .../static/description/assets/misc/email.svg | 0 .../description/assets/misc/features.png | Bin .../static/description/assets/misc/logo.png | Bin .../static/description/assets/misc/phone.svg | 0 .../description/assets/misc/pictures.png | Bin .../description/assets/misc/pie-chart.png | Bin .../description/assets/misc/right-arrow.png | Bin .../description/assets/misc/star (1) 2.svg | 0 .../static/description/assets/misc/star.png | Bin .../description/assets/misc/support (1) 1.svg | 0 .../description/assets/misc/support-email.svg | 0 .../description/assets/misc/support.png | Bin .../description/assets/misc/tick-mark.svg | 0 .../description/assets/misc/whatsapp 1.svg | 0 .../description/assets/misc/whatsapp.png | Bin .../description/assets/misc/whatsapp.svg | 0 .../static/description/assets/modules/1.gif | Bin .../static/description/assets/modules/2.png | Bin .../static/description/assets/modules/3.png | Bin .../static/description/assets/modules/4.jpg | Bin .../static/description/assets/modules/5.jpg | Bin .../static/description/assets/modules/6.png | Bin .../description/assets/screenshots/hero.gif | Bin .../assets/screenshots/image_1.png | Bin .../assets/screenshots/image_2.png | Bin .../assets/screenshots/image_3.png | Bin .../assets/screenshots/image_4.png | Bin .../static/description/banner.jpg | Bin .../static/description/icon.png | Bin .../static/description/index.html | 0 .../static/src/js/PaymentForm.js | 9 +++--- .../views/payment_provider_views.xml | 0 .../views/website_sale_delivery_templates.xml | 0 70 files changed, 62 insertions(+), 15 deletions(-) mode change 100644 => 100755 web_pay_shipping_methods/README.rst mode change 100644 => 100755 web_pay_shipping_methods/__init__.py mode change 100644 => 100755 web_pay_shipping_methods/__manifest__.py create mode 100644 web_pay_shipping_methods/controllers/__init__.py create mode 100644 web_pay_shipping_methods/controllers/main.py mode change 100644 => 100755 web_pay_shipping_methods/doc/RELEASE_NOTES.md mode change 100644 => 100755 web_pay_shipping_methods/models/__init__.py mode change 100644 => 100755 web_pay_shipping_methods/models/payment_provider.py mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/capture (1).png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/check.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/chevron.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/cogs.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/consultation.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/ecom-black.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/education-black.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/hotel-black.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/img.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/license.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/lifebuoy.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/manufacturing-black.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/photo-capture.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/pos-black.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/puzzle.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/restaurant-black.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/service-black.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/trading-black.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/training.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/update.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/user.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/icons/wrench.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/Cybrosys R.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/categories.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/check-box.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/compass.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/corporate.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/customer-support.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/cybrosys-logo.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/email.svg mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/features.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/logo.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/phone.svg mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/pictures.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/pie-chart.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/right-arrow.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/star (1) 2.svg mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/star.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/support (1) 1.svg mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/support-email.svg mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/support.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/tick-mark.svg mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/whatsapp 1.svg mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/whatsapp.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/misc/whatsapp.svg mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/modules/1.gif mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/modules/2.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/modules/3.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/modules/4.jpg mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/modules/5.jpg mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/modules/6.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/screenshots/hero.gif mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/screenshots/image_1.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/screenshots/image_2.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/screenshots/image_3.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/assets/screenshots/image_4.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/banner.jpg mode change 100644 => 100755 web_pay_shipping_methods/static/description/icon.png mode change 100644 => 100755 web_pay_shipping_methods/static/description/index.html mode change 100644 => 100755 web_pay_shipping_methods/static/src/js/PaymentForm.js mode change 100644 => 100755 web_pay_shipping_methods/views/payment_provider_views.xml mode change 100644 => 100755 web_pay_shipping_methods/views/website_sale_delivery_templates.xml diff --git a/web_pay_shipping_methods/README.rst b/web_pay_shipping_methods/README.rst old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/__init__.py b/web_pay_shipping_methods/__init__.py old mode 100644 new mode 100755 index 3e46b78b0..d37ffae3f --- a/web_pay_shipping_methods/__init__.py +++ b/web_pay_shipping_methods/__init__.py @@ -17,4 +17,4 @@ # If not, see . # ############################################################################## -from . import models +from . import controllers,models diff --git a/web_pay_shipping_methods/__manifest__.py b/web_pay_shipping_methods/__manifest__.py old mode 100644 new mode 100755 index b5ead8ceb..e6f855277 --- a/web_pay_shipping_methods/__manifest__.py +++ b/web_pay_shipping_methods/__manifest__.py @@ -19,7 +19,7 @@ ############################################################################## { 'name': "Web Pay Shipping Methods", - 'version': '17.0.1.0.0', + 'version': '17.0.1.0.1', 'category': 'eCommerce', 'summary': """Select shipping methods based on payment provider.""", 'description': """The Shipping methods specified for a payment provider diff --git a/web_pay_shipping_methods/controllers/__init__.py b/web_pay_shipping_methods/controllers/__init__.py new file mode 100644 index 000000000..88809e5d4 --- /dev/null +++ b/web_pay_shipping_methods/controllers/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj() +# 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 main diff --git a/web_pay_shipping_methods/controllers/main.py b/web_pay_shipping_methods/controllers/main.py new file mode 100644 index 000000000..8fd1f26cb --- /dev/null +++ b/web_pay_shipping_methods/controllers/main.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Mruthul Raj() +# 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 http +from odoo.http import request + + +class WebPayShippingMethods(http.Controller): + + @http.route('/web/deliver/carrier', type='json', auth='public', website=True) + def get_delivery_carriers(self, **kwargs): + provider_id = kwargs.get('provider_id') + payment_provider = request.env['payment.provider'].sudo().browse(provider_id) + return payment_provider.delivery_carrier_ids.ids diff --git a/web_pay_shipping_methods/doc/RELEASE_NOTES.md b/web_pay_shipping_methods/doc/RELEASE_NOTES.md old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/models/__init__.py b/web_pay_shipping_methods/models/__init__.py old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/models/payment_provider.py b/web_pay_shipping_methods/models/payment_provider.py old mode 100644 new mode 100755 index 451f59580..5996312c8 --- a/web_pay_shipping_methods/models/payment_provider.py +++ b/web_pay_shipping_methods/models/payment_provider.py @@ -17,18 +17,14 @@ # If not, see . # ############################################################################## -from odoo import fields, models +from odoo import api, fields, models class PaymentProvider(models.Model): """Inherited payment_provider to add shipping method field""" _inherit = 'payment.provider' - delivery_carrier_ids = fields.Many2many('delivery.carrier', - string="Shipping Methods", - domain="[('website_published'," - " '=', True)]", - help="Add shipping methods which " - "will be available while " - "choosing this payment " - "provider") + delivery_carrier_ids = fields.Many2many('delivery.carrier', string="Shipping Methods", + domain="[('website_published','=', True)]", + help="Add shipping methods which will be available while " + "choosing this payment provider") diff --git a/web_pay_shipping_methods/static/description/assets/icons/capture (1).png b/web_pay_shipping_methods/static/description/assets/icons/capture (1).png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/check.png b/web_pay_shipping_methods/static/description/assets/icons/check.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/chevron.png b/web_pay_shipping_methods/static/description/assets/icons/chevron.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/cogs.png b/web_pay_shipping_methods/static/description/assets/icons/cogs.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/consultation.png b/web_pay_shipping_methods/static/description/assets/icons/consultation.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/ecom-black.png b/web_pay_shipping_methods/static/description/assets/icons/ecom-black.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/education-black.png b/web_pay_shipping_methods/static/description/assets/icons/education-black.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/hotel-black.png b/web_pay_shipping_methods/static/description/assets/icons/hotel-black.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/img.png b/web_pay_shipping_methods/static/description/assets/icons/img.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/license.png b/web_pay_shipping_methods/static/description/assets/icons/license.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/lifebuoy.png b/web_pay_shipping_methods/static/description/assets/icons/lifebuoy.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/manufacturing-black.png b/web_pay_shipping_methods/static/description/assets/icons/manufacturing-black.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/photo-capture.png b/web_pay_shipping_methods/static/description/assets/icons/photo-capture.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/pos-black.png b/web_pay_shipping_methods/static/description/assets/icons/pos-black.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/puzzle.png b/web_pay_shipping_methods/static/description/assets/icons/puzzle.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/restaurant-black.png b/web_pay_shipping_methods/static/description/assets/icons/restaurant-black.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/service-black.png b/web_pay_shipping_methods/static/description/assets/icons/service-black.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/trading-black.png b/web_pay_shipping_methods/static/description/assets/icons/trading-black.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/training.png b/web_pay_shipping_methods/static/description/assets/icons/training.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/update.png b/web_pay_shipping_methods/static/description/assets/icons/update.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/user.png b/web_pay_shipping_methods/static/description/assets/icons/user.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/icons/wrench.png b/web_pay_shipping_methods/static/description/assets/icons/wrench.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/Cybrosys R.png b/web_pay_shipping_methods/static/description/assets/misc/Cybrosys R.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/categories.png b/web_pay_shipping_methods/static/description/assets/misc/categories.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/check-box.png b/web_pay_shipping_methods/static/description/assets/misc/check-box.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/compass.png b/web_pay_shipping_methods/static/description/assets/misc/compass.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/corporate.png b/web_pay_shipping_methods/static/description/assets/misc/corporate.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/customer-support.png b/web_pay_shipping_methods/static/description/assets/misc/customer-support.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/cybrosys-logo.png b/web_pay_shipping_methods/static/description/assets/misc/cybrosys-logo.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/email.svg b/web_pay_shipping_methods/static/description/assets/misc/email.svg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/features.png b/web_pay_shipping_methods/static/description/assets/misc/features.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/logo.png b/web_pay_shipping_methods/static/description/assets/misc/logo.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/phone.svg b/web_pay_shipping_methods/static/description/assets/misc/phone.svg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/pictures.png b/web_pay_shipping_methods/static/description/assets/misc/pictures.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/pie-chart.png b/web_pay_shipping_methods/static/description/assets/misc/pie-chart.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/right-arrow.png b/web_pay_shipping_methods/static/description/assets/misc/right-arrow.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/star (1) 2.svg b/web_pay_shipping_methods/static/description/assets/misc/star (1) 2.svg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/star.png b/web_pay_shipping_methods/static/description/assets/misc/star.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/support (1) 1.svg b/web_pay_shipping_methods/static/description/assets/misc/support (1) 1.svg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/support-email.svg b/web_pay_shipping_methods/static/description/assets/misc/support-email.svg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/support.png b/web_pay_shipping_methods/static/description/assets/misc/support.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/tick-mark.svg b/web_pay_shipping_methods/static/description/assets/misc/tick-mark.svg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/whatsapp 1.svg b/web_pay_shipping_methods/static/description/assets/misc/whatsapp 1.svg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/whatsapp.png b/web_pay_shipping_methods/static/description/assets/misc/whatsapp.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/misc/whatsapp.svg b/web_pay_shipping_methods/static/description/assets/misc/whatsapp.svg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/modules/1.gif b/web_pay_shipping_methods/static/description/assets/modules/1.gif old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/modules/2.png b/web_pay_shipping_methods/static/description/assets/modules/2.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/modules/3.png b/web_pay_shipping_methods/static/description/assets/modules/3.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/modules/4.jpg b/web_pay_shipping_methods/static/description/assets/modules/4.jpg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/modules/5.jpg b/web_pay_shipping_methods/static/description/assets/modules/5.jpg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/modules/6.png b/web_pay_shipping_methods/static/description/assets/modules/6.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/screenshots/hero.gif b/web_pay_shipping_methods/static/description/assets/screenshots/hero.gif old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/screenshots/image_1.png b/web_pay_shipping_methods/static/description/assets/screenshots/image_1.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/screenshots/image_2.png b/web_pay_shipping_methods/static/description/assets/screenshots/image_2.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/screenshots/image_3.png b/web_pay_shipping_methods/static/description/assets/screenshots/image_3.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/assets/screenshots/image_4.png b/web_pay_shipping_methods/static/description/assets/screenshots/image_4.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/banner.jpg b/web_pay_shipping_methods/static/description/banner.jpg old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/icon.png b/web_pay_shipping_methods/static/description/icon.png old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/description/index.html b/web_pay_shipping_methods/static/description/index.html old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/static/src/js/PaymentForm.js b/web_pay_shipping_methods/static/src/js/PaymentForm.js old mode 100644 new mode 100755 index 4106c355c..27370bd44 --- a/web_pay_shipping_methods/static/src/js/PaymentForm.js +++ b/web_pay_shipping_methods/static/src/js/PaymentForm.js @@ -2,7 +2,6 @@ import { patch } from "@web/core/utils/patch"; import PaymentForm from '@payment/js/payment_form'; -console.log(PaymentForm) PaymentForm.include({ /** * Function executes when payment provider is clicked and it checks if there are @@ -18,9 +17,11 @@ PaymentForm.include({ $(this).addClass('d-none'); }); let providerId = ev.target.dataset['providerId'] - let carriers = await this.orm.read("payment.provider",[parseInt(providerId)],['delivery_carrier_ids']) - if(carriers[0].delivery_carrier_ids.length > 0){ - carriers[0].delivery_carrier_ids.forEach((id)=>{ + let carriers=await this.rpc('/web/deliver/carrier',{ + 'provider_id':parseInt(providerId), + }) + if(carriers.length > 0){ + carriers.forEach((id)=>{ if(id){ let deliveryMethod = '#delivery_method_'+id $(deliveryMethod)[0].classList.remove('d-none') diff --git a/web_pay_shipping_methods/views/payment_provider_views.xml b/web_pay_shipping_methods/views/payment_provider_views.xml old mode 100644 new mode 100755 diff --git a/web_pay_shipping_methods/views/website_sale_delivery_templates.xml b/web_pay_shipping_methods/views/website_sale_delivery_templates.xml old mode 100644 new mode 100755