diff --git a/website_customer_note/README.rst b/website_customer_note/README.rst new file mode 100755 index 000000000..32ed9ab31 --- /dev/null +++ b/website_customer_note/README.rst @@ -0,0 +1,47 @@ +.. 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 + +Website Customer Note +===================== +Add Customer Note On eCommerce Website Payment Screen And It Will Display On Correspondig Sale Order Form . + +Configuration +============= +* No additional configurations needed + +License +------- + +GNU LESSER GENERAL PUBLIC LICENSE, Version 3 (LGPLv3) +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: (V16) Anjitha V, 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/website_customer_note/__init__.py b/website_customer_note/__init__.py new file mode 100644 index 000000000..7ea1e3ea2 --- /dev/null +++ b/website_customer_note/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Anjitha V(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 models + diff --git a/website_customer_note/__manifest__.py b/website_customer_note/__manifest__.py new file mode 100755 index 000000000..cb1eadfba --- /dev/null +++ b/website_customer_note/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Anjitha V(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': 'Website Customer Note', + 'version': '16.0.1.0.0', + 'category': 'Ecommerce', + 'summary': 'This Module Helps to Add Customer Note on Advance payment Screen .', + 'description': """This Module Helps to Add Customer Note on Advance payment Screen.And it will display on the sale order form view""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base','sale_management', 'website_sale'], + 'data': [ + 'views/website_sale_inherit_view.xml', + 'views/sale_order_view.xml', + ], + 'assets': { + 'web.assets_frontend': [ + 'website_customer_note/static/js/pay_now_button.js' + ], + }, + 'images': ['static/description/assets/_v16-banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/website_customer_note/doc/RELEASE_NOTES.md b/website_customer_note/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..7d39813d8 --- /dev/null +++ b/website_customer_note/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 16.05.2024 +#### Version 16.0.1.0.0 +#### ADD +- Initial commit for Website Customer Note diff --git a/website_customer_note/models/__init__.py b/website_customer_note/models/__init__.py new file mode 100644 index 000000000..33c42283c --- /dev/null +++ b/website_customer_note/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Anjitha V(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 sale_order diff --git a/website_customer_note/models/sale_order.py b/website_customer_note/models/sale_order.py new file mode 100644 index 000000000..4aecb70c6 --- /dev/null +++ b/website_customer_note/models/sale_order.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Anjitha V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . + +############################################################################# +from odoo import api, fields, models + + +class SaleOrder(models.Model): + _inherit = 'sale.order' + + customer_note = fields.Text(string="Customer Note") + + @api.model + def write_customer_note(self, sale_order_id, customer_note): + """ + Write customer note to a sale order. + + :param sale_order_id: ID of the sale order to which the customer note is to be written. + :type sale_order_id: int + :param customer_note: Text of the customer note. + :type customer_note: str + :return: True if successfully written, False otherwise. + :rtype: bool + """ + sale_order = self.env['sale.order'].browse(sale_order_id) + sale_order.write({'customer_note': customer_note}) + return True diff --git a/website_customer_note/static/description/assets/_v16-banner.png b/website_customer_note/static/description/assets/_v16-banner.png new file mode 100644 index 000000000..1fec1b811 Binary files /dev/null and b/website_customer_note/static/description/assets/_v16-banner.png differ diff --git a/website_customer_note/static/description/assets/icons/check.png b/website_customer_note/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/website_customer_note/static/description/assets/icons/check.png differ diff --git a/website_customer_note/static/description/assets/icons/chevron.png b/website_customer_note/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/website_customer_note/static/description/assets/icons/chevron.png differ diff --git a/website_customer_note/static/description/assets/icons/cogs.png b/website_customer_note/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/website_customer_note/static/description/assets/icons/cogs.png differ diff --git a/website_customer_note/static/description/assets/icons/consultation.png b/website_customer_note/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/website_customer_note/static/description/assets/icons/consultation.png differ diff --git a/website_customer_note/static/description/assets/icons/ecom-black.png b/website_customer_note/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/website_customer_note/static/description/assets/icons/ecom-black.png differ diff --git a/website_customer_note/static/description/assets/icons/education-black.png b/website_customer_note/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/website_customer_note/static/description/assets/icons/education-black.png differ diff --git a/website_customer_note/static/description/assets/icons/hotel-black.png b/website_customer_note/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/website_customer_note/static/description/assets/icons/hotel-black.png differ diff --git a/website_customer_note/static/description/assets/icons/license.png b/website_customer_note/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/website_customer_note/static/description/assets/icons/license.png differ diff --git a/website_customer_note/static/description/assets/icons/lifebuoy.png b/website_customer_note/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/website_customer_note/static/description/assets/icons/lifebuoy.png differ diff --git a/website_customer_note/static/description/assets/icons/manufacturing-black.png b/website_customer_note/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/website_customer_note/static/description/assets/icons/manufacturing-black.png differ diff --git a/website_customer_note/static/description/assets/icons/pos-black.png b/website_customer_note/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/website_customer_note/static/description/assets/icons/pos-black.png differ diff --git a/website_customer_note/static/description/assets/icons/puzzle.png b/website_customer_note/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/website_customer_note/static/description/assets/icons/puzzle.png differ diff --git a/website_customer_note/static/description/assets/icons/restaurant-black.png b/website_customer_note/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/website_customer_note/static/description/assets/icons/restaurant-black.png differ diff --git a/website_customer_note/static/description/assets/icons/service-black.png b/website_customer_note/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/website_customer_note/static/description/assets/icons/service-black.png differ diff --git a/website_customer_note/static/description/assets/icons/trading-black.png b/website_customer_note/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/website_customer_note/static/description/assets/icons/trading-black.png differ diff --git a/website_customer_note/static/description/assets/icons/training.png b/website_customer_note/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/website_customer_note/static/description/assets/icons/training.png differ diff --git a/website_customer_note/static/description/assets/icons/update.png b/website_customer_note/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/website_customer_note/static/description/assets/icons/update.png differ diff --git a/website_customer_note/static/description/assets/icons/user.png b/website_customer_note/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/website_customer_note/static/description/assets/icons/user.png differ diff --git a/website_customer_note/static/description/assets/icons/wrench.png b/website_customer_note/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/website_customer_note/static/description/assets/icons/wrench.png differ diff --git a/website_customer_note/static/description/assets/misc/categories.png b/website_customer_note/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/website_customer_note/static/description/assets/misc/categories.png differ diff --git a/website_customer_note/static/description/assets/misc/check-box.png b/website_customer_note/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/website_customer_note/static/description/assets/misc/check-box.png differ diff --git a/website_customer_note/static/description/assets/misc/compass.png b/website_customer_note/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/website_customer_note/static/description/assets/misc/compass.png differ diff --git a/website_customer_note/static/description/assets/misc/corporate.png b/website_customer_note/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/website_customer_note/static/description/assets/misc/corporate.png differ diff --git a/website_customer_note/static/description/assets/misc/customer-support.png b/website_customer_note/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/website_customer_note/static/description/assets/misc/customer-support.png differ diff --git a/website_customer_note/static/description/assets/misc/cybrosys-logo.png b/website_customer_note/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/website_customer_note/static/description/assets/misc/cybrosys-logo.png differ diff --git a/website_customer_note/static/description/assets/misc/features.png b/website_customer_note/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/website_customer_note/static/description/assets/misc/features.png differ diff --git a/website_customer_note/static/description/assets/misc/logo.png b/website_customer_note/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/website_customer_note/static/description/assets/misc/logo.png differ diff --git a/website_customer_note/static/description/assets/misc/pictures.png b/website_customer_note/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/website_customer_note/static/description/assets/misc/pictures.png differ diff --git a/website_customer_note/static/description/assets/misc/pie-chart.png b/website_customer_note/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/website_customer_note/static/description/assets/misc/pie-chart.png differ diff --git a/website_customer_note/static/description/assets/misc/right-arrow.png b/website_customer_note/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/website_customer_note/static/description/assets/misc/right-arrow.png differ diff --git a/website_customer_note/static/description/assets/misc/star.png b/website_customer_note/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/website_customer_note/static/description/assets/misc/star.png differ diff --git a/website_customer_note/static/description/assets/misc/support.png b/website_customer_note/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/website_customer_note/static/description/assets/misc/support.png differ diff --git a/website_customer_note/static/description/assets/misc/whatsapp.png b/website_customer_note/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/website_customer_note/static/description/assets/misc/whatsapp.png differ diff --git a/website_customer_note/static/description/assets/modules/banner1.png b/website_customer_note/static/description/assets/modules/banner1.png new file mode 100644 index 000000000..29e8179bf Binary files /dev/null and b/website_customer_note/static/description/assets/modules/banner1.png differ diff --git a/website_customer_note/static/description/assets/modules/banner2.png b/website_customer_note/static/description/assets/modules/banner2.png new file mode 100644 index 000000000..a44d454aa Binary files /dev/null and b/website_customer_note/static/description/assets/modules/banner2.png differ diff --git a/website_customer_note/static/description/assets/modules/banner3.png b/website_customer_note/static/description/assets/modules/banner3.png new file mode 100644 index 000000000..bd1a82caa Binary files /dev/null and b/website_customer_note/static/description/assets/modules/banner3.png differ diff --git a/website_customer_note/static/description/assets/modules/banner4.png b/website_customer_note/static/description/assets/modules/banner4.png new file mode 100644 index 000000000..79b383412 Binary files /dev/null and b/website_customer_note/static/description/assets/modules/banner4.png differ diff --git a/website_customer_note/static/description/assets/modules/banner5.png b/website_customer_note/static/description/assets/modules/banner5.png new file mode 100644 index 000000000..fc6659119 Binary files /dev/null and b/website_customer_note/static/description/assets/modules/banner5.png differ diff --git a/website_customer_note/static/description/assets/modules/banner6.jpg b/website_customer_note/static/description/assets/modules/banner6.jpg new file mode 100644 index 000000000..36a70d4a0 Binary files /dev/null and b/website_customer_note/static/description/assets/modules/banner6.jpg differ diff --git a/website_customer_note/static/description/assets/screenshots/Page_1.png b/website_customer_note/static/description/assets/screenshots/Page_1.png new file mode 100644 index 000000000..b764de8a0 Binary files /dev/null and b/website_customer_note/static/description/assets/screenshots/Page_1.png differ diff --git a/website_customer_note/static/description/assets/screenshots/Page_2.png b/website_customer_note/static/description/assets/screenshots/Page_2.png new file mode 100644 index 000000000..02ec73f27 Binary files /dev/null and b/website_customer_note/static/description/assets/screenshots/Page_2.png differ diff --git a/website_customer_note/static/description/assets/screenshots/Page_3.png b/website_customer_note/static/description/assets/screenshots/Page_3.png new file mode 100644 index 000000000..3514180f5 Binary files /dev/null and b/website_customer_note/static/description/assets/screenshots/Page_3.png differ diff --git a/website_customer_note/static/description/assets/screenshots/Page_4.png b/website_customer_note/static/description/assets/screenshots/Page_4.png new file mode 100644 index 000000000..96330a535 Binary files /dev/null and b/website_customer_note/static/description/assets/screenshots/Page_4.png differ diff --git a/website_customer_note/static/description/assets/screenshots/v16-hero.gif b/website_customer_note/static/description/assets/screenshots/v16-hero.gif new file mode 100644 index 000000000..ae3dcb9b5 Binary files /dev/null and b/website_customer_note/static/description/assets/screenshots/v16-hero.gif differ diff --git a/website_customer_note/static/description/assets/v16-icon.png b/website_customer_note/static/description/assets/v16-icon.png new file mode 100644 index 000000000..f2881aec3 Binary files /dev/null and b/website_customer_note/static/description/assets/v16-icon.png differ diff --git a/website_customer_note/static/description/index.html b/website_customer_note/static/description/index.html new file mode 100644 index 000000000..5c5a67ccd --- /dev/null +++ b/website_customer_note/static/description/index.html @@ -0,0 +1,591 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+
+ + +

+ Add Customer Note In Website Payment Screen

+

+ This App Allows User To Add Customer Note In + Website Payment Screen And It Will Display + On Corresponding Sale Order Form. +

+ + +
+ +
+
+ +
+

+ Explore This + Module

+
+ + + +
+
+ +
+

+ Overview +

+
+
+
+ Users Can Add Customer Note If Needed To Display Along With The Sale Order +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Users Can Add Customer Note On Website Payment Screen + +
+
+
+ + + The Added Note Will Display In The Corresponding Sale Order Form + +
+
+ + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ We can now see a new field for Customer Notes on the Sale Order form after successfully installing the + module. +

+ +
+
+

+ Additionally, there is a Text Area for adding Customer Notes on the Website Payment Screen.

+ +
+
+

+ On this Payment Screen, users have the option to add a Customer Note.

+ +
+
+

+ The Customer Note will be displayed in the 'Customer Note' field of the corresponding Sale Order form. +

+ +
+
+
+ + +
+
+ +
+

+ Related + 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

+
+
+
+
+ + +
+
+ +
+

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ diff --git a/website_customer_note/static/js/pay_now_button.js b/website_customer_note/static/js/pay_now_button.js new file mode 100644 index 000000000..6b5d50cfd --- /dev/null +++ b/website_customer_note/static/js/pay_now_button.js @@ -0,0 +1,47 @@ +odoo.define('website_customer_note.payment_screen', require => { + 'use strict'; + + // Import required modules + const publicWidget = require('web.public.widget'); + const paymentFormMixin = require('payment.payment_form_mixin'); + + // Define PaymentFormCustomerNote widget + publicWidget.registry.PaymentFormCustomerNote = publicWidget.Widget.extend(paymentFormMixin, { + selector: 'form[name="o_payment_checkout"]', + events: Object.assign({}, publicWidget.Widget.prototype.events, { + 'click button[name="o_payment_submit_button"]': '_onClickPay', + }), + + // Initialize widget + init: function () { + this._super(...arguments); + }, + + // Handle click event on payment submit button + _onClickPay: async function (ev) { + // Get the value of the customer_note field + const customerNote = $('#customer_note').val(); + + // Get the current sale order ID from the form data + const saleOrderId = $('input[name="sale_order_id"]').val(); + + // Check if sale order ID is found + if (!saleOrderId) { + console.error("Sale Order ID not found in form data."); + return; + } + + // Make a RPC call to the server-side method write_customer_note + const result = await this._rpc({ + model: 'sale.order', + method: 'write_customer_note', + args: [parseInt(saleOrderId), customerNote], + }); + + // Reload the page to reflect changes + location.reload(); + }, + }); + + return publicWidget.registry.PaymentFormCustomerNote; +}); diff --git a/website_customer_note/views/sale_order_view.xml b/website_customer_note/views/sale_order_view.xml new file mode 100644 index 000000000..77e068734 --- /dev/null +++ b/website_customer_note/views/sale_order_view.xml @@ -0,0 +1,15 @@ + + + + + sale.order.form.inherit + sale.order + + + + + + + + + diff --git a/website_customer_note/views/website_sale_inherit_view.xml b/website_customer_note/views/website_sale_inherit_view.xml new file mode 100644 index 000000000..3eda373fd --- /dev/null +++ b/website_customer_note/views/website_sale_inherit_view.xml @@ -0,0 +1,14 @@ + + + +