old_contents: # -*- coding: utf-8 -*-
  ##############################################################################
  #
  #    Copyright (C) 2018 Visiotech All Rights Reserved
  #    $Jesus Garcia Manzanas <jgmanzanas@visiotechsecurity.com>$
  #
  #    This program is free software: you can redistribute it and/or modify
  #    it under the terms of the GNU Affero General Public License as published
  #    by the Free Software Foundation, either version 3 of the License, or
  #    (at your option) any later version.
  #
  #    This program is distributed in the hope that it will be useful,
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #    GNU Affero General Public License for more details.
  #
  #    You should have received a copy of the GNU Affero General Public License
  #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #
  ##############################################################################
  from openerp import models, fields, api, _
  
  
  class SaleConfirmWizard(models.TransientModel):
  
      _name = 'sale.confirm.wizard'
  
      str = fields.Char()
  
      @api.multi
      def confirm_transfer(self):
          import ipdb
          ipdb.set_trace()
          context = self.env.context
          context['confirmed'] = True
          self.env['sale.order'].action_risk_approval(context)
new_contents: # -*- coding: utf-8 -*-
  ##############################################################################
  #
  #    Copyright (C) 2018 Visiotech All Rights Reserved
  #    $Jesus Garcia Manzanas <jgmanzanas@visiotechsecurity.com>$
  #
  #    This program is free software: you can redistribute it and/or modify
  #    it under the terms of the GNU Affero General Public License as published
  #    by the Free Software Foundation, either version 3 of the License, or
  #    (at your option) any later version.
  #
  #    This program is distributed in the hope that it will be useful,
  #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  #    GNU Affero General Public License for more details.
  #
  #    You should have received a copy of the GNU Affero General Public License
  #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  #
  ##############################################################################
  from openerp import models, fields, api, _
  
  
  class SaleConfirmWizard(models.TransientModel):
  
      _name = 'sale.confirm.wizard'
  
      @api.multi
      def confirm_transfer(self):
          import ipdb
          ipdb.set_trace()
          context = self.env.context.copy()
          context['confirmed'] = True
          self.env['sale.order'].browse(self.env.context['active_id']).\
              with_context(context).action_risk_approval()
  
subject: Update sale_confirm_wizard.py