Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][ADD] website_sale_order_autoconfirm #345

Merged
merged 1 commit into from
Mar 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions setup/website_sale_order_autoconfirm/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
55 changes: 55 additions & 0 deletions website_sale_order_autoconfirm/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
===================================
Website Sale Order SEPA AutoConfirm
===================================

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

.. |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/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-coopiteasy%2Faddons-lightgray.png?logo=github
:target: https://github.com/coopiteasy/addons/tree/16.0/website_sale_order_autoconfirm
:alt: coopiteasy/addons

|badge1| |badge2| |badge3|

Autoconfirm Sale orders created via ecommerce with SEPA products.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/coopiteasy/addons/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/coopiteasy/addons/issues/new?body=module:%20website_sale_order_autoconfirm%0Aversion:%2016.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
~~~~~~~

* Coop IT Easy SC

Maintainers
~~~~~~~~~~~

This module is part of the `coopiteasy/addons <https://github.com/coopiteasy/addons/tree/16.0/website_sale_order_autoconfirm>`_ project on GitHub.

You are welcome to contribute.
4 changes: 4 additions & 0 deletions website_sale_order_autoconfirm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-FileCopyrightText: 2024 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later
from . import models
16 changes: 16 additions & 0 deletions website_sale_order_autoconfirm/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SPDX-FileCopyrightText: 2024 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

{
"name": "Website Sale Order SEPA AutoConfirm",
"summary": "Autoconfirm Sale orders created via ecommerce with SEPA products",
"version": "16.0.1.0.0",
"category": "Website",
"website": "https://github.com/coopiteasy/addons",
"author": "Coop IT Easy SC",
"license": "AGPL-3",
"depends": [
"website_sale",
],
}
1 change: 1 addition & 0 deletions website_sale_order_autoconfirm/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import sale_order
15 changes: 15 additions & 0 deletions website_sale_order_autoconfirm/models/sale_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from odoo import models


class SaleOrder(models.Model):
_inherit = "sale.order"

def action_quotation_sent(self):
# In the ecommerce flow, this method is called after the payment step,
# the SO is then marked as sent. We override this method
# in order to autoconfirm the ecommerce SO.
result = super().action_quotation_sent()
if self.website_id:
self.action_confirm()
# silence W8110
return result
1 change: 1 addition & 0 deletions website_sale_order_autoconfirm/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Autoconfirm Sale orders created via ecommerce with SEPA products.
Loading