title: Odoo 10 : How to pass parameter to a tree view from button?
body: <p>I  added a button in contacts form like this :</p>
  
  <pre><code>&lt;xpath expr='//div[@class="oe_button_box"]//button[@name="toggle_active"]' position='after'&gt;   
                      &lt;button type="action" name="%(survey.action_survey_user_input)d" string="Surveys" class="oe_stat_button"/&gt;           
                  &lt;/xpath&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/A4Tjb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A4Tjb.png" alt="enter image description here"></a></p>
  
  <p>which opens the below tree view of survey but without a filter on email id . how to pass email id with this button to the below tree view of survey??</p>
  
  <p><a href="https://i.stack.imgur.com/1xry9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1xry9.png" alt="enter image description here"></a></p>
  
  <p><strong>Info</strong>: I tried to add context in the button tag but didnt work.</p>
  
  <pre><code>context="{'email': email}"
  </code></pre>