Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
78b154a
[9.0][WIP] website_sale_checkout_skip_payment: New module to skip pay…
sergio-teruel Jul 25, 2017
8c964cf
[IMP] website_sale_checkout_skip_payment: Texts + code
chienandalu Jul 31, 2017
62a54e1
Porting website_sale_checkout_skip_payment to 10.0
eLBati Sep 4, 2017
84fc7a3
[MIG] website_sale_checkout_skip_payment: Migration to 11.0
larmar Dec 24, 2017
a179f12
[9.0][FIX] website_sale_checkout_skip_paymen: Message error in checko…
sergio-teruel Dec 20, 2017
9fc38bb
Removed git
larmar Dec 25, 2017
8e92d50
Translated using Weblate (Italian)
paolovalier Dec 28, 2018
400aba8
Translated using Weblate (Spanish)
mvrodriguez Feb 4, 2019
57a1120
[MIG] website_sale_checkout_skip_payment: Migration to v12.0
sergio-teruel Oct 24, 2019
c4b1de0
[IMP] website_sale_checkout_skip_payment: black, isort, prettier
Tardo Jan 30, 2020
4150607
[MIG] website_sale_checkout_skip_payment: Migration to 13.0
Tardo Jan 30, 2020
96f93cd
Translated using Weblate (Dutch)
bosd Dec 15, 2020
a7582cb
Translated using Weblate (Catalan)
claudiagn Feb 25, 2021
982a511
Translated using Weblate (Spanish)
claudiagn Feb 25, 2021
19e5d17
[IMP] website_sale_checkout_skip_payment: Changes on Confirm Order Bu…
CarlosRoca13 May 18, 2021
92a6d09
[FIX] website_sale_checkout_skip_payment: Error when client is public…
CarlosRoca13 May 20, 2021
2766076
[IMP] website_sale_checkout_skip_payment: black, isort, prettier
ferran-S73 Aug 30, 2021
725d38b
[14.0][MIG] website_sale_checkout_skip_payment: Migration to V14
ferran-S73 Aug 30, 2021
c632b3f
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 20, 2021
87c0697
[MIG] website_sale_checkout_skip_payment: Migration to 15.0
rajpatel2240-odoo Apr 20, 2022
5a3518a
[FIX] website_sale_checkout_skip_payment: CacheMiss error when sessio…
tarteo Jul 8, 2020
c865a6f
[FIX] website_sale_checkout_skip_payment: Fix tests
CarlosRoca13 May 31, 2022
37338bc
Translated using Weblate (Portuguese)
pedrocs-exo Dec 14, 2022
47903c5
Translated using Weblate (Italian)
francesco-ooops Feb 1, 2023
be06e4d
[15.0][IMP] website_sale_checkout_skip_payment: hide payment message
miguel-S73 Feb 15, 2023
e76aef6
website_sale_checkout_skip_payment 15.0.1.1.0
OCA-git-bot Feb 15, 2023
7657774
[FIX] website_sale_checkout_skip_payment: Increase priority to avoid …
sergio-teruel Feb 22, 2023
cc6313d
website_sale_checkout_skip_payment 15.0.1.2.0
OCA-git-bot Feb 23, 2023
34071c8
[TYPO] in README.rst
yvaucher May 3, 2023
2274646
[IMP] : pre-commit stuff
kisuka May 22, 2023
d0ce13c
[MIG] website_sale_checkout_skip_payment: Migration to 16.0
kisuka May 22, 2023
07697c5
Removed old test for website_sale_checkout_skip_payment
kisuka Jul 19, 2023
8745b22
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 4, 2023
94149bb
Translated using Weblate (Spanish)
Ivorra78 Sep 5, 2023
ec140d3
[FIX] website_sale_checkout_skip_payment: Fix test by adding the vat
pilarvargas-tecnativa Sep 11, 2023
854073b
[IMP] website_sale_checkout_skip_payment: test performance improvement
josep-tecnativa Oct 18, 2023
48126d3
Translated using Weblate (French)
remi-filament Nov 30, 2023
0e4237a
[FIX] website_sale_checkout_skip_payment: Addapt changes set on payme…
CarlosRoca13 Nov 30, 2023
30c5738
Translated using Weblate (Italian)
mymage May 7, 2024
1d6ad89
Translated using Weblate (Portuguese (Brazil))
May 29, 2024
7a5a1e2
Translated using Weblate (Swedish)
jakobkrabbe Jun 19, 2024
432062d
[FIX] website_sale_checkout_skip_payment: Fix wrong confirmation method.
pilarvargas-tecnativa Jul 30, 2024
42da1de
[FIX] website_sale_checkout_skip_payment: translate payment message
chienandalu Aug 20, 2024
26033ba
Translated using Weblate (Italian)
mymage Aug 26, 2024
6cd4040
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec Sep 3, 2024
a49f1fd
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 16, 2024
3077fa6
[IMP] website_sale_checkout_skip_payment: pre-commit auto fixes
pilarvargas-tecnativa Oct 21, 2024
33ed1e2
[MIG] website_sale_checkout_skip_payment: Migration to 18.0
pilarvargas-tecnativa Oct 21, 2024
2da3595
[UPD] Update website_sale_checkout_skip_payment.pot
Oct 28, 2024
3065d6c
[BOT] post-merge updates
OCA-git-bot Oct 28, 2024
ed617d1
Update translation files
weblate Oct 28, 2024
d44328a
Translated using Weblate (Italian)
mymage Oct 29, 2024
513af8d
Translated using Weblate (Dutch)
Larsq1 Mar 24, 2025
10c294b
[IMP] website_sale_checkout_skip_payment: skip_website_checkout_payme…
pilarvargas-tecnativa Nov 21, 2025
d1901a0
[BOT] post-merge updates
OCA-git-bot Nov 27, 2025
8adf248
[MIG] website_sale_checkout_skip_payment: Migration to 19.0
JasminSForgeFlow Dec 15, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions website_sale_checkout_skip_payment/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==================================
Website Sale Checkout Skip Payment
==================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9a080bb1584feaba066528920794ca7b67f5e33a1cc7fe4b08f70f5c36527419
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fe--commerce-lightgray.png?logo=github
:target: https://github.com/OCA/e-commerce/tree/19.0/website_sale_checkout_skip_payment
:alt: OCA/e-commerce
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/e-commerce-19-0/e-commerce-19-0-website_sale_checkout_skip_payment
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/e-commerce&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to logged users to checkout with no payment step. At
the end of the checkout proccess the quotation is sent to the user email
address and set to *Qoutation Sent* state.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to:

1. Go to *Sales > Customers > Sales and Purchases > Sale*
2. Set on *Skip Website Checkout Payment* so this partner will override
the payment step on website sales.

Usage
=====

To use this module, you need to:

1. Go to *Website > shop* and perform a checkout.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/e-commerce/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/e-commerce/issues/new?body=module:%20website_sale_checkout_skip_payment%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

Contributors
------------

- `Tecnativa <https://www.tecnativa.com>`__

- Sergio Teruel
- David Vidal
- Alexandre Díaz
- Carlos Roca
- Pilar Vargas

- Martin Wilderoth <martin.wilderoth@linserv.se>
- `Studio73 <https://www.studio73.es>`__:

- Miguel Gandia <miguel@studio73.es>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/e-commerce <https://github.com/OCA/e-commerce/tree/19.0/website_sale_checkout_skip_payment>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions website_sale_checkout_skip_payment/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import controllers
27 changes: 27 additions & 0 deletions website_sale_checkout_skip_payment/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2017 Sergio Teruel <sergio.teruel@tecnativa.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Website Sale Checkout Skip Payment",
"summary": "Skip payment for logged users in checkout process",
"version": "19.0.1.0.0",
"category": "Website",
"website": "https://github.com/OCA/e-commerce",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": ["website_sale"],
"data": [
"views/website_sale_skip_payment.xml",
"views/website_sale_template.xml",
"views/partner_view.xml",
"views/res_config_settings_views.xml",
],
"assets": {
"web.assets_tests": [
"website_sale_checkout_skip_payment/static/tests/**/*",
],
},
}
1 change: 1 addition & 0 deletions website_sale_checkout_skip_payment/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import main
37 changes: 37 additions & 0 deletions website_sale_checkout_skip_payment/controllers/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2017 Sergio Teruel <sergio.teruel@tecnativa.com>
# Copyright 2017 David Vidal <david.vidal@tecnativa.com>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from odoo import http
from odoo.http import request

from odoo.addons.website_sale.controllers.main import WebsiteSale


class CheckoutSkipPaymentWebsite(WebsiteSale):
def _get_shop_payment_values(self, order, **kwargs):
values = super()._get_shop_payment_values(order, **kwargs)
partner = values.get("partner")
if partner.skip_website_checkout_payment:
values["hide_payment_button"] = True
return values

@http.route()
def shop_payment_confirmation(self, **post):
"""When we skip the payment, we'll just confirm the order and send the proper
confirmation message"""
order_id = request.session.get("sale_last_order_id")
if not request.website.checkout_skip_payment or not order_id:
return super().shop_payment_confirmation(**post)
order = request.env["sale.order"].sudo().browse(order_id)
try:
order.with_context(mark_so_as_sent=True)._send_order_confirmation_mail()
except Exception:
return request.render(
"website_sale_checkout_skip_payment.confirmation_order_error"
)
# This could not finish (e.g.: sale_financial_risk exceeded)
order.action_confirm()
request.website.sale_reset()
values = self._prepare_shop_payment_confirmation_values(order)
return request.render("website_sale.confirmation", values)
99 changes: 99 additions & 0 deletions website_sale_checkout_skip_payment/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_checkout_skip_payment
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-05-18 10:04+0000\n"
"PO-Revision-Date: 2021-05-18 12:12+0200\n"
"Last-Translator: Carlos <carlos.roca@tecnativa.com>\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 2.0.6\n"

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.navigation_buttons
msgid "<span class=\"px-3\">or</span>"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.navigation_buttons
msgid "<span>Confirm <span class=\"fa fa-angle-right ms-2 fw-light\"/></span>"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.confirmation_order_error
msgid ""
"<strong>Error!</strong> An error occurred trying to\n"
" confirm the sale order."
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model.fields,field_description:website_sale_checkout_skip_payment.field_website__checkout_skip_payment
msgid "Checkout Skip Payment"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model,name:website_sale_checkout_skip_payment.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.navigation_buttons
msgid "Confirm"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model,name:website_sale_checkout_skip_payment.model_res_partner
msgid "Contact"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.res_config_settings_view_form
msgid "Message shown to the user when the purchase is finished"
msgstr ""

#. module: website_sale_checkout_skip_payment
#. odoo-python
#: code:addons/website_sale_checkout_skip_payment/models/website.py:0
msgid "Our team will check your order and send you payment information soon."
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.res_config_settings_view_form
msgid "Sale Checkout Skip Message"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.confirmation_order_error
msgid "Shop - Confirmation - Error"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model.fields,field_description:website_sale_checkout_skip_payment.field_res_partner__skip_website_checkout_payment
#: model:ir.model.fields,field_description:website_sale_checkout_skip_payment.field_res_users__skip_website_checkout_payment
msgid "Skip Website Checkout Payment"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model,name:website_sale_checkout_skip_payment.model_website
msgid "Website"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model.fields,field_description:website_sale_checkout_skip_payment.field_res_config_settings__website_sale_checkout_skip_message
msgid "Website Sale Checkout Skip Message"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model.fields,field_description:website_sale_checkout_skip_payment.field_website__website_sale_checkout_skip_message
msgid "Website Sale SKip Message"
msgstr ""
100 changes: 100 additions & 0 deletions website_sale_checkout_skip_payment/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_checkout_skip_payment
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-05-18 10:04+0000\n"
"PO-Revision-Date: 2021-05-18 12:12+0200\n"
"Last-Translator: Carlos <carlos.roca@tecnativa.com>\n"
"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
"X-Generator: Poedit 2.0.6\n"

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.navigation_buttons
msgid "<span class=\"px-3\">or</span>"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.navigation_buttons
msgid "<span>Confirm <span class=\"fa fa-angle-right ms-2 fw-light\"/></span>"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.confirmation_order_error
msgid ""
"<strong>Error!</strong> An error occurred trying to\n"
" confirm the sale order."
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model.fields,field_description:website_sale_checkout_skip_payment.field_website__checkout_skip_payment
msgid "Checkout Skip Payment"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model,name:website_sale_checkout_skip_payment.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.navigation_buttons
msgid "Confirm"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model,name:website_sale_checkout_skip_payment.model_res_partner
msgid "Contact"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.res_config_settings_view_form
msgid "Message shown to the user when the purchase is finished"
msgstr ""

#. module: website_sale_checkout_skip_payment
#. odoo-python
#: code:addons/website_sale_checkout_skip_payment/models/website.py:0
msgid "Our team will check your order and send you payment information soon."
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.res_config_settings_view_form
msgid "Sale Checkout Skip Message"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model_terms:ir.ui.view,arch_db:website_sale_checkout_skip_payment.confirmation_order_error
msgid "Shop - Confirmation - Error"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model.fields,field_description:website_sale_checkout_skip_payment.field_res_partner__skip_website_checkout_payment
#: model:ir.model.fields,field_description:website_sale_checkout_skip_payment.field_res_users__skip_website_checkout_payment
msgid "Skip Website Checkout Payment"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model,name:website_sale_checkout_skip_payment.model_website
msgid "Website"
msgstr "الموقع"

#. module: website_sale_checkout_skip_payment
#: model:ir.model.fields,field_description:website_sale_checkout_skip_payment.field_res_config_settings__website_sale_checkout_skip_message
msgid "Website Sale Checkout Skip Message"
msgstr ""

#. module: website_sale_checkout_skip_payment
#: model:ir.model.fields,field_description:website_sale_checkout_skip_payment.field_website__website_sale_checkout_skip_message
msgid "Website Sale SKip Message"
msgstr ""
Loading