title: How to use condition in form view of Odoo 9?
body: <p>I want to do something like this:-</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;record id="view_form" model="ir.ui.view"&gt;
      &lt;field name="name"&gt;module.form&lt;/field&gt;
      &lt;field name="model"&gt;module.form&lt;/field&gt;
      &lt;field name="inherit_id" ref="another_module.view_form"/&gt;
      &lt;field name="priority" eval="20"/&gt;
      &lt;field name="arch" type="xml"&gt;
          &lt;xpath expr="//notebook" position="replace"&gt;
              &lt;notebook t-if="context.get('no_error', False)"&gt;
                  &lt;page name="A" string="A"&gt;
                      &lt;group&gt;
                          &lt;field name='save'/&gt;
                      &lt;/group&gt;
                  &lt;/page&gt;
              &lt;/notebook&gt;
              &lt;notebook t-if="not context.get('no_error', False)"&gt;
                  &lt;page name="A" string="A"&gt;
                      &lt;group&gt;
                          &lt;field name='save' widget="my_widget"/&gt;
                      &lt;/group&gt;
                  &lt;/page&gt;
              &lt;/notebook&gt;
          &lt;/xpath&gt;
      &lt;/field&gt;
  &lt;/record&gt;
  </code></pre>
  
  <p>But I am getting both notebook in the UI/View</p>
  
  <p>I tried to print the value using t-esc but but I am not getting any value.</p>
  
  <p>Is it possible to do something like this or can we use context in xpath ?</p>