diff --git a/website_appointment_payment/README.rst b/website_appointment_payment/README.rst new file mode 100644 index 000000000..ad2a616a5 --- /dev/null +++ b/website_appointment_payment/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/licence-OPL--1-red.svg + :target: https://www.odoo.com/documentation/16.0/legal/licenses.html#odoo-apps + :alt: License: OPL-1 + +Website Appointment Payment +========================== +* You can configure the payments from the Website. +Configuration +============ + - www.odoo.com/documentation/16.0/setup/install.html + - Install our custom addon + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Odoo Proprietary License v1.0 (OPL-1) +(https://www.odoo.com/documentation/16.0/legal/licenses.html#odoo-apps) + +Credits +------- +* Developer: (V16) NIHALA KP, 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 +-------- +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com" + +Further Information +----------- +HTML Description: ``__ + + diff --git a/website_appointment_payment/__init__.py b/website_appointment_payment/__init__.py new file mode 100644 index 000000000..ce180ebc2 --- /dev/null +++ b/website_appointment_payment/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from . import controllers +from . import models diff --git a/website_appointment_payment/__manifest__.py b/website_appointment_payment/__manifest__.py new file mode 100644 index 000000000..34dbd67a1 --- /dev/null +++ b/website_appointment_payment/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +{ + 'name': 'Website Appointment Payment', + 'version': '16.0.1.0.0', + 'category': 'Website', + 'summary': 'Payment before confirming the Appointment in Website', + 'description': """We can do the Payment in online appointment in website""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['sale', 'base', 'website_appointment'], + 'data': [ + 'data/appoinment_product_demo.xml', + 'views/appointment_product_view.xml', + 'views/appointment_template_registration.xml', + 'views/website_appointment_template.xml', + 'views/website_appointment_payment_template.xml', + 'views/appointment_info_template.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'OPL-1', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/website_appointment_payment/controllers/__init__.py b/website_appointment_payment/controllers/__init__.py new file mode 100644 index 000000000..f03f77051 --- /dev/null +++ b/website_appointment_payment/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from . import appointment diff --git a/website_appointment_payment/controllers/appointment.py b/website_appointment_payment/controllers/appointment.py new file mode 100644 index 000000000..a29149755 --- /dev/null +++ b/website_appointment_payment/controllers/appointment.py @@ -0,0 +1,173 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +import uuid +import pytz +from dateutil.relativedelta import relativedelta +from odoo import fields, http, Command, _ +from odoo.http import request, route +from odoo.addons.appointment.controllers.appointment import \ + AppointmentController +from odoo.addons.appointment.controllers.calendar import \ + AppointmentCalendarController +import logging +from odoo.addons.base.models.ir_qweb import keep_query + +_logger = logging.getLogger(__name__) + + +class AppointmentAccountPayment(AppointmentController): + + @http.route() + def appointment_form_submit( + self, appointment_type_id, datetime_str, duration_str, + staff_user_id, name, phone, email, **kwargs): + """Override: when a payment step is necessary, we create the appointment + booking model to store all relevant information + instead of creating a calendar.event. It will + be transformed to a 'calendar.event' on payment (or confirmation). + See make_event on appointment.booking. + Redirects to payment if needed. See redirect_to_payment""" + appointment = request.env['appointment.type'].sudo().browse( + appointment_type_id) + partner = request.env['res.partner'].search([('email', '=like', email)]) + if not partner: + partner = request.env['res.partner'].sudo().create({ + 'name': name, + 'email': email + }) + if appointment.has_payment_step and appointment.product_id.lst_price: + invoice_id = request.env['account.move'].sudo().create({ + 'move_type': 'out_invoice', + 'partner_id': partner.id, + 'invoice_line_ids': [Command.create({ + 'product_id': appointment.product_id.id + })] + }) + invoice_id.action_post() + currency = request.env.user.company_id.currency_id + tokens = request.env['payment.token'] + show_tokenize_input_mapping = {} + for provider_sudo in request.env['payment.provider'].sudo().search( + [('is_published', '=', True)]): + show_tokenize_input = provider_sudo.allow_tokenization \ + and not provider_sudo._is_tokenization_required( + sale_order_id=False) and request.env.user._is_public() + show_tokenize_input_mapping[ + provider_sudo.id] = show_tokenize_input + values = { + 'providers': request.env['payment.provider'].sudo().search( + [('is_published', '=', True)]), + 'tokens': tokens, + 'amount': invoice_id.amount_total, + 'show_tokenize_input': show_tokenize_input_mapping, + 'user': request.env.user.partner_id, + 'access_token': invoice_id._portal_ensure_token(), + 'currency': currency, + 'transaction_route': f'/invoice/transaction/{invoice_id.id}', + 'landing_route': f'/payment/success/{appointment.id}' + f'?mail={email}&date={datetime_str}' + f'&duration={duration_str}&name={name}' + f'&phone={phone}&invoice={invoice_id.id}', + 'errors': [] + } + return request.render( + "website_appointment_payment.appointment_payment", values) + return super().appointment_form_submit( + appointment_type_id, datetime_str, duration_str, staff_user_id, + name, phone, email, **kwargs + ) + + @http.route('/payment/success/', type='http', + auth='public') + def appointment_payment(self, appointment_id, **kwargs): + """An Event is created after the payment step and redirected to the + booking confirmation/summary page""" + appointment = request.env['appointment.type'].browse( + appointment_id) + timezone = request.session.get('timezone') or appointment.appointment_tz + tz_session = pytz.timezone(timezone) + date_start = tz_session.localize( + fields.Datetime.from_string(kwargs.get('date'))).astimezone( + pytz.utc).replace( + tzinfo=None) + duration_hours = int(float(kwargs.get('duration'))) + date_end = date_start + relativedelta(hours=duration_hours) + description_bits = [] + description = '' + description_bits.append(_('Mobile: %s', kwargs.get('phone'))) + description_bits.append(_('Email: %s', kwargs.get('mail'))) + description = '
    ' + ''.join( + ['
  • %s
  • ' % bit for bit in description_bits]) + '
' + event = request.env['calendar.event'].sudo().create({ + 'name': appointment.name, + 'start': date_start, + 'stop': date_end, + 'duration': kwargs.get('duration'), + 'location': appointment.location_id.id, + 'appointment_type_id': appointment.id, + 'user_id': appointment.staff_user_ids.id, + 'invoice_ids': [(4, int(kwargs.get('invoice')))], + 'description': description, + 'access_token': uuid.uuid4().hex, + 'videocall_location': '/calendar/join_videocall/{access_token}' + }) + partner = self._get_customer_partner() or request.env[ + 'res.partner'].sudo().search( + [('email', '=like', kwargs.get('mail'))], + limit=1) + return request.redirect( + '/calendar/view/%s?partner_id=%s&%s' % ( + event.access_token, partner.id, keep_query('*', state='new'))) + + +class AppointmentCancel(AppointmentCalendarController): + + @route(['/calendar/cancel/', + '/calendar//cancel', + ], type='http', auth="public", website=True) + def appointment_cancel(self, access_token, partner_id, **kwargs): + """If the appointment is cancelled, credit note is created""" + event = request.env['calendar.event'].sudo().search( + [('access_token', '=', access_token)], limit=1) + if event.invoice_ids: + reverse_invoice = request.env[ + 'account.move.reversal'].sudo().create({ + 'reason': "Appointment Cancelled", + 'move_ids': event.invoice_ids[0], + 'journal_id': event.invoice_ids.journal_id.id + }) + reverse_invoice.reverse_moves() + reversed_invoice = request.env['account.move'].sudo().search( + [('reversed_entry_id', '=', event.invoice_ids[0].id)]) + reversed_invoice.action_post() + journal = request.env['account.journal'].sudo().search( + [('type', '=', 'bank'), + ], + limit=1) + register_payments = request.env[ + 'account.payment.register'].with_context( + active_model='account.move', + active_ids=reversed_invoice.ids).sudo().create({ + 'journal_id': journal.id, + }) + register_payments._create_payments() + return super().appointment_cancel(access_token, partner_id, **kwargs) diff --git a/website_appointment_payment/data/appoinment_product_demo.xml b/website_appointment_payment/data/appoinment_product_demo.xml new file mode 100644 index 000000000..6673a0469 --- /dev/null +++ b/website_appointment_payment/data/appoinment_product_demo.xml @@ -0,0 +1,19 @@ + + + + + + + Booking Fees + + + Booking Fees + 0.00 + + 50.00 + booking_fees + + + + + diff --git a/website_appointment_payment/doc/RELEASE_NOTES.md b/website_appointment_payment/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..c57bd4db2 --- /dev/null +++ b/website_appointment_payment/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 19.04.2024 +#### Version 16.0.1.0.0 +#### ADD +- Initial Commit Website Appointment Payment + diff --git a/website_appointment_payment/models/__init__.py b/website_appointment_payment/models/__init__.py new file mode 100644 index 000000000..f733501d6 --- /dev/null +++ b/website_appointment_payment/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from . import account_move +from . import appointment_price +from . import calendar_event +from . import product_template diff --git a/website_appointment_payment/models/account_move.py b/website_appointment_payment/models/account_move.py new file mode 100644 index 000000000..8e01fd7fc --- /dev/null +++ b/website_appointment_payment/models/account_move.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from odoo import models, fields + + +class AccountMove(models.Model): + _inherit = 'account.move' + + event_id = fields.Many2one('calendar.event', help="To link the invoice " + "with the calendar.event") diff --git a/website_appointment_payment/models/appointment_price.py b/website_appointment_payment/models/appointment_price.py new file mode 100644 index 000000000..4e3cb1dfb --- /dev/null +++ b/website_appointment_payment/models/appointment_price.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from odoo import models, fields + + +class AppointmentPrice(models.Model): + """this is used to inherit the appointment.type model to add some custom + fields""" + _inherit = 'appointment.type' + + has_payment_step = fields.Boolean("Up-front Payment", + help="Require visitors to pay to " + "confirm their booking") + product_id = fields.Many2one( + 'product.product', string="Product", + help="Product configured for appointment booking", + domain=[('detailed_type', '=', 'booking_fees')], + readonly=False, store=True) diff --git a/website_appointment_payment/models/calendar_event.py b/website_appointment_payment/models/calendar_event.py new file mode 100644 index 000000000..6bd011684 --- /dev/null +++ b/website_appointment_payment/models/calendar_event.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from odoo import models, fields + + +class CalendarEvent(models.Model): + _inherit = 'calendar.event' + + invoice_ids = fields.One2many('account.move', 'event_id', + help="To link the invoice and calendar.event") diff --git a/website_appointment_payment/models/product_template.py b/website_appointment_payment/models/product_template.py new file mode 100644 index 000000000..d257087d2 --- /dev/null +++ b/website_appointment_payment/models/product_template.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# This program is under the terms of Odoo Proprietary License v1.0 (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +################################################################################ +from odoo import fields, models + + +class ProductTemplate(models.Model): + """new product type is added for appointment booking""" + _inherit = "product.template" + + detailed_type = fields.Selection(selection_add=[ + ('booking_fees', 'Booking Fees'), + ], help="Added new detailed type for appointment booking", + ondelete={'booking_fees': 'set service'}) + + def _detailed_type_mapping(self): + """Added a new product type for appointment booking""" + type_mapping = super()._detailed_type_mapping() + type_mapping['booking_fees'] = 'service' + return type_mapping diff --git a/website_appointment_payment/static/description/assets/icons/check.png b/website_appointment_payment/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/check.png differ diff --git a/website_appointment_payment/static/description/assets/icons/chevron.png b/website_appointment_payment/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/chevron.png differ diff --git a/website_appointment_payment/static/description/assets/icons/cogs.png b/website_appointment_payment/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/cogs.png differ diff --git a/website_appointment_payment/static/description/assets/icons/consultation.png b/website_appointment_payment/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/consultation.png differ diff --git a/website_appointment_payment/static/description/assets/icons/ecom-black.png b/website_appointment_payment/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/ecom-black.png differ diff --git a/website_appointment_payment/static/description/assets/icons/education-black.png b/website_appointment_payment/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/education-black.png differ diff --git a/website_appointment_payment/static/description/assets/icons/hotel-black.png b/website_appointment_payment/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/hotel-black.png differ diff --git a/website_appointment_payment/static/description/assets/icons/license.png b/website_appointment_payment/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/license.png differ diff --git a/website_appointment_payment/static/description/assets/icons/lifebuoy.png b/website_appointment_payment/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/lifebuoy.png differ diff --git a/website_appointment_payment/static/description/assets/icons/manufacturing-black.png b/website_appointment_payment/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/manufacturing-black.png differ diff --git a/website_appointment_payment/static/description/assets/icons/pos-black.png b/website_appointment_payment/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/pos-black.png differ diff --git a/website_appointment_payment/static/description/assets/icons/puzzle.png b/website_appointment_payment/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/puzzle.png differ diff --git a/website_appointment_payment/static/description/assets/icons/restaurant-black.png b/website_appointment_payment/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/restaurant-black.png differ diff --git a/website_appointment_payment/static/description/assets/icons/service-black.png b/website_appointment_payment/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/service-black.png differ diff --git a/website_appointment_payment/static/description/assets/icons/trading-black.png b/website_appointment_payment/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/trading-black.png differ diff --git a/website_appointment_payment/static/description/assets/icons/training.png b/website_appointment_payment/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/training.png differ diff --git a/website_appointment_payment/static/description/assets/icons/update.png b/website_appointment_payment/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/update.png differ diff --git a/website_appointment_payment/static/description/assets/icons/user.png b/website_appointment_payment/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/user.png differ diff --git a/website_appointment_payment/static/description/assets/icons/wrench.png b/website_appointment_payment/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/website_appointment_payment/static/description/assets/icons/wrench.png differ diff --git a/website_appointment_payment/static/description/assets/misc/categories.png b/website_appointment_payment/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/categories.png differ diff --git a/website_appointment_payment/static/description/assets/misc/check-box.png b/website_appointment_payment/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/check-box.png differ diff --git a/website_appointment_payment/static/description/assets/misc/compass.png b/website_appointment_payment/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/compass.png differ diff --git a/website_appointment_payment/static/description/assets/misc/corporate.png b/website_appointment_payment/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/corporate.png differ diff --git a/website_appointment_payment/static/description/assets/misc/customer-support.png b/website_appointment_payment/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/customer-support.png differ diff --git a/website_appointment_payment/static/description/assets/misc/cybrosys-logo.png b/website_appointment_payment/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/cybrosys-logo.png differ diff --git a/website_appointment_payment/static/description/assets/misc/features.png b/website_appointment_payment/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/features.png differ diff --git a/website_appointment_payment/static/description/assets/misc/logo.png b/website_appointment_payment/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/logo.png differ diff --git a/website_appointment_payment/static/description/assets/misc/pictures.png b/website_appointment_payment/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/pictures.png differ diff --git a/website_appointment_payment/static/description/assets/misc/pie-chart.png b/website_appointment_payment/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/pie-chart.png differ diff --git a/website_appointment_payment/static/description/assets/misc/right-arrow.png b/website_appointment_payment/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/right-arrow.png differ diff --git a/website_appointment_payment/static/description/assets/misc/star.png b/website_appointment_payment/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/star.png differ diff --git a/website_appointment_payment/static/description/assets/misc/support.png b/website_appointment_payment/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/support.png differ diff --git a/website_appointment_payment/static/description/assets/misc/whatsapp.png b/website_appointment_payment/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/website_appointment_payment/static/description/assets/misc/whatsapp.png differ diff --git a/website_appointment_payment/static/description/assets/modules/1.png b/website_appointment_payment/static/description/assets/modules/1.png new file mode 100644 index 000000000..e90228872 Binary files /dev/null and b/website_appointment_payment/static/description/assets/modules/1.png differ diff --git a/website_appointment_payment/static/description/assets/modules/2.png b/website_appointment_payment/static/description/assets/modules/2.png new file mode 100644 index 000000000..fa478cd14 Binary files /dev/null and b/website_appointment_payment/static/description/assets/modules/2.png differ diff --git a/website_appointment_payment/static/description/assets/modules/3.png b/website_appointment_payment/static/description/assets/modules/3.png new file mode 100644 index 000000000..45afa2b89 Binary files /dev/null and b/website_appointment_payment/static/description/assets/modules/3.png differ diff --git a/website_appointment_payment/static/description/assets/modules/4.png b/website_appointment_payment/static/description/assets/modules/4.png new file mode 100644 index 000000000..9b58fa3ec Binary files /dev/null and b/website_appointment_payment/static/description/assets/modules/4.png differ diff --git a/website_appointment_payment/static/description/assets/modules/5.png b/website_appointment_payment/static/description/assets/modules/5.png new file mode 100644 index 000000000..79dc3bf08 Binary files /dev/null and b/website_appointment_payment/static/description/assets/modules/5.png differ diff --git a/website_appointment_payment/static/description/assets/modules/6.jpg b/website_appointment_payment/static/description/assets/modules/6.jpg new file mode 100755 index 000000000..2b7aaa6d2 Binary files /dev/null and b/website_appointment_payment/static/description/assets/modules/6.jpg differ diff --git a/website_appointment_payment/static/description/assets/screenshots/hero1.gif b/website_appointment_payment/static/description/assets/screenshots/hero1.gif new file mode 100644 index 000000000..a31e12a8f Binary files /dev/null and b/website_appointment_payment/static/description/assets/screenshots/hero1.gif differ diff --git a/website_appointment_payment/static/description/assets/screenshots/screenshot1.png b/website_appointment_payment/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..0504cb8a7 Binary files /dev/null and b/website_appointment_payment/static/description/assets/screenshots/screenshot1.png differ diff --git a/website_appointment_payment/static/description/assets/screenshots/screenshot10.png b/website_appointment_payment/static/description/assets/screenshots/screenshot10.png new file mode 100644 index 000000000..6866d470f Binary files /dev/null and b/website_appointment_payment/static/description/assets/screenshots/screenshot10.png differ diff --git a/website_appointment_payment/static/description/assets/screenshots/screenshot2.png b/website_appointment_payment/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..c0758eb46 Binary files /dev/null and b/website_appointment_payment/static/description/assets/screenshots/screenshot2.png differ diff --git a/website_appointment_payment/static/description/assets/screenshots/screenshot3.png b/website_appointment_payment/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..e1017a738 Binary files /dev/null and b/website_appointment_payment/static/description/assets/screenshots/screenshot3.png differ diff --git a/website_appointment_payment/static/description/assets/screenshots/screenshot4.png b/website_appointment_payment/static/description/assets/screenshots/screenshot4.png new file mode 100644 index 000000000..d7ea019fe Binary files /dev/null and b/website_appointment_payment/static/description/assets/screenshots/screenshot4.png differ diff --git a/website_appointment_payment/static/description/assets/screenshots/screenshot5.png b/website_appointment_payment/static/description/assets/screenshots/screenshot5.png new file mode 100644 index 000000000..8ab3dc1c3 Binary files /dev/null and b/website_appointment_payment/static/description/assets/screenshots/screenshot5.png differ diff --git a/website_appointment_payment/static/description/assets/screenshots/screenshot6.png b/website_appointment_payment/static/description/assets/screenshots/screenshot6.png new file mode 100644 index 000000000..f5b0be3f9 Binary files /dev/null and b/website_appointment_payment/static/description/assets/screenshots/screenshot6.png differ diff --git a/website_appointment_payment/static/description/assets/screenshots/screenshot7.png b/website_appointment_payment/static/description/assets/screenshots/screenshot7.png new file mode 100644 index 000000000..36a5ad7b0 Binary files /dev/null and b/website_appointment_payment/static/description/assets/screenshots/screenshot7.png differ diff --git a/website_appointment_payment/static/description/assets/screenshots/screenshot8.png b/website_appointment_payment/static/description/assets/screenshots/screenshot8.png new file mode 100644 index 000000000..cb38e41fd Binary files /dev/null and b/website_appointment_payment/static/description/assets/screenshots/screenshot8.png differ diff --git a/website_appointment_payment/static/description/banner.png b/website_appointment_payment/static/description/banner.png new file mode 100644 index 000000000..fbe7f6578 Binary files /dev/null and b/website_appointment_payment/static/description/banner.png differ diff --git a/website_appointment_payment/static/description/icon.png b/website_appointment_payment/static/description/icon.png new file mode 100644 index 000000000..4eb1fa039 Binary files /dev/null and b/website_appointment_payment/static/description/icon.png differ diff --git a/website_appointment_payment/static/description/index.html b/website_appointment_payment/static/description/index.html new file mode 100644 index 000000000..9ae599b8f --- /dev/null +++ b/website_appointment_payment/static/description/index.html @@ -0,0 +1,568 @@ +
+ +
+ +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Website Appointment Payment

+

+ + +
+
+
+
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ By using this module you can pay the appointment booking fees from the website +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + You can configure a product for appointment booking fees +
+
+ + You can see the appointment fees in the appointment card +
+
+ + You can complete the payment from website +
+ +
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+
+

Enable the payment option

+

+ From Website > Configuration > Online Appointments > options , you can enable the checkbox to configure website payments.

+ +
+
+

Product configuration

+

+ When you enable the checkbox, you'll be able to view the products configured for booking. Additionally, if you wish to configure the payment provider, you can do so from there as well.

+ +
+
+

Schedule the appointment

+

+ While scheduling appointments on the website, you can also view the booking fees within the appointment information.

+ +
+
+

select the date

+ + +
+ +
+

Proceed to Payment

+

We've enabled the upfront payment option, which adds an extra step to proceed to payment before confirming the appointment.

+ +
+ +
+

Select the Payment provider

+

Choose the Payment provider and complete the payment

+ +
+ +
+

Payment in Progress

+ +
+
+

Payment Completed

+

Payment has been completed, and we can now view the booking information.

+ +
+ + +
+
+ + + +
+
+ +
+

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

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/website_appointment_payment/views/appointment_info_template.xml b/website_appointment_payment/views/appointment_info_template.xml new file mode 100644 index 000000000..e8c759d8f --- /dev/null +++ b/website_appointment_payment/views/appointment_info_template.xml @@ -0,0 +1,16 @@ + + + + + diff --git a/website_appointment_payment/views/appointment_product_view.xml b/website_appointment_payment/views/appointment_product_view.xml new file mode 100644 index 000000000..adc216f7b --- /dev/null +++ b/website_appointment_payment/views/appointment_product_view.xml @@ -0,0 +1,30 @@ + + + + + + appointment.type.view.product.form + appointment.type + + + + + + + + diff --git a/website_appointment_payment/views/appointment_template_registration.xml b/website_appointment_payment/views/appointment_template_registration.xml new file mode 100644 index 000000000..a0eb50e34 --- /dev/null +++ b/website_appointment_payment/views/appointment_template_registration.xml @@ -0,0 +1,17 @@ + + + + + diff --git a/website_appointment_payment/views/website_appointment_payment_template.xml b/website_appointment_payment/views/website_appointment_payment_template.xml new file mode 100644 index 000000000..57d699e3b --- /dev/null +++ b/website_appointment_payment/views/website_appointment_payment_template.xml @@ -0,0 +1,22 @@ + + + + + diff --git a/website_appointment_payment/views/website_appointment_template.xml b/website_appointment_payment/views/website_appointment_template.xml new file mode 100644 index 000000000..9ba1e390e --- /dev/null +++ b/website_appointment_payment/views/website_appointment_template.xml @@ -0,0 +1,16 @@ + + + + +