# -*- 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)
@@ -1117,33 +1117,8 @@
 d'%0A%0A
-    str = fields.Char()%0A%0A
     
@@ -1239,16 +1239,23 @@
 .context
+.copy()
 %0A       
@@ -1314,16 +1314,90 @@
 order'%5D.
+browse(self.env.context%5B'active_id'%5D).%5C%0A            with_context(context).
 action_r
@@ -1409,16 +1409,10 @@
 pproval(
-context
 )
+%0A

Update sale_confirm_wizard.py