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()