from odoo import models class SaleOrder(models.Model): _inherit = 'sale.order' def action_confirm(self): return super(SaleOrder, self.with_context(bypass_user_restriction=True)).action_confirm() def _action_confirm(self): return super(SaleOrder, self.with_context(bypass_user_restriction=True))._action_confirm() def _action_launch_stock_rule(self, previous_product_uom_qty=False): return super(SaleOrder, self.with_context(bypass_user_restriction=True))._action_launch_stock_rule(previous_product_uom_qty=previous_product_uom_qty)