title: Odoo 10 clickable button before setting mandatory fields in wizard
body: <p>I would like to create clickable button before setting mandatory fields in wizard that return grouped by product tree view.</p>
  
  <p><a href="https://i.stack.imgur.com/LNonY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LNonY.png" alt="enter image description here"></a></p>
  
  <p>Is the any possibilities to ignore mandatory fields and make clickable button?</p>
  
  <p>xml:</p>
  
  <pre><code>&lt;button string="Show quants from" name="button_show_quants_from" type="object" class="btn-primary"/&gt;
  </code></pre>
  
  <p>python:</p>
  
  <pre><code>@api.multi
  def button_show_quants_from(self):
      view = self.env.ref('my_stock.view_my_stock_quant_tree')
      self.ensure_one()
      return {
          'name': _('Quants from'),
          'view_type': 'form',
          'view_mode': 'tree',
          'views': [(view.id, 'tree')],
          'view_id': view.id,
          'res_model': 'stock.quant',
          'type': 'ir.actions.act_window',
          'target':'new',
          'domain': [('location_id','=',self.location_to_id.id),('reservation_id','=',False)],
      'context': {'group_by': 'product_id'},
      }
  </code></pre>
  
  <p>I was thinking about tree view inside this wizard form view but there I can't group it by product and the see messy view with lots of product quantity pieces.</p>
  
  <p>Now I have one2many list like that:</p>
  
  <p><a href="https://i.stack.imgur.com/QbkRi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QbkRi.png" alt="enter image description here"></a></p>