[MIG] sale_confirm_wizard from v10 to v14

This commit is contained in:
Alexis de Lattre
2021-10-01 21:10:54 +02:00
parent 74ff1b5cb5
commit b2eda2a23b
9 changed files with 23 additions and 24 deletions

View File

@@ -0,0 +1 @@
from . import sale_order

View File

@@ -0,0 +1,17 @@
# Copyright 2020-2021 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
class SaleOrder(models.Model):
_inherit = 'sale.order'
def sale_confirm_wizard_button(self):
"""This method is designed to be inherited.
For example, inherit it if you don't want to start the wizard in
some scenarios"""
action = self.sudo().env.ref(
'sale_confirm_wizard.sale_confirm_action').read()[0]
return action