title: Odoo 10 : Call a confirmation form (Yes / No) from Wizard
body: <p>I want to add to my purchase order a 'cancel' button. This button will change the state of my record to 'canceled'.
  When the user click on this button the script verify all the purchase inquiries and provider orders if there is any one not done or canceled yet.
  I want to add a pop-up to warn the user about them. The user can cancel the operation or pursuit and cancel all the related inquiries and orders.</p>
  
  <p>This is my wizard model :</p>
  
  <pre class="lang-py prettyprint-override"><code># -*- coding: utf-8 -*-
  
  from odoo import models, fields, api
  
  class confirm_wizard(models.TransientModel):
      _name = 'tjara.confirm_wizard'
  
      yes_no = fields.Char(default='Do you want to proceed?')
  
      @api.multi
      def yes(self):
          return True
  
      @api.multi
      def no(self):
          return False
  </code></pre>
  
  <p>My wizards view :</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;odoo&gt;
      &lt;data&gt;
          &lt;record model="ir.ui.view" id="confirm_wizard_form"&gt;
              &lt;field name="name"&gt;wizard.form&lt;/field&gt;
              &lt;field name="model"&gt;tjara.confirm_wizard&lt;/field&gt;
              &lt;field name="type"&gt;form&lt;/field&gt;
              &lt;field name="arch" type="xml"&gt;
                  &lt;form string="Confirm dialog"&gt;
                      &lt;field name="yes_no" readonly="1" /&gt;
                      &lt;footer&gt;
                          &lt;button class="oe_highlight" name="yes" string="Yes" /&gt;
                          &lt;button class="oe_highlight" name="no" string="No" /&gt;
                      &lt;/footer&gt;
                  &lt;/form&gt;
              &lt;/field&gt;
          &lt;/record&gt;
      &lt;/data&gt;
  &lt;/odoo&gt;
  </code></pre>
  
  <p>The button :</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;button string="Canceled" type="object" name="canceled_progressbar" class="oe_highlight" attrs="{'invisible': [('state', '=', 'done')]}"/&gt;
  </code></pre>
  
  <p>And finally the two methods :</p>
  
  <pre class="lang-py prettyprint-override"><code>@api.multi
  def return_confirmation(self):
      return {
          'name': 'Are you sure?',
          'type': 'ir.actions.act_window',
          'res_model': 'tjara.confirm_wizard',
          'view_mode': 'form',
          'view_type': 'form',
          'target': 'new',
      }
  
  @api.multi
  def canceled_progressbar(self):
      if(self.return_confirmation()):
          #Do some code
      else:
          #Do some code
  </code></pre>
  
  <p>The model is triggered only when the button is pointed on return_confirmation method. Which make me incapable to pursuit my code. Only a pop-up appear then disappear when the user click on a button.
  I want to call the return_confirmation (pop-up) via the canceled_progressbar, so I can return the value and moving on. </p>