title: Default Group By two fields tree view Odoo 10
body: <p>I am trying to make default group by in list view.
  If I use the below line it is working fine with one field.</p>
  
  <pre><code>&lt;field name="context"&gt;{'group_by':'sector_id'}&lt;/field&gt;
  </code></pre>
  
  <p>However my requirement is to group by default with two levels, sector and then nature. So I tried the below code but nothing happens and no error.</p>
  
  <p>Action:</p>
  
  <pre><code>&lt;record id="program_activity_action_window_chairman" model="ir.actions.act_window"&gt;
      &lt;field name="name"&gt;Activity&lt;/field&gt;
      &lt;field name="res_model"&gt;program.activity&lt;/field&gt;
      &lt;field name="view_ids" eval="[(5,0,0),(0,0,{'view_mode':'tree','view_id':ref('view_program_activity_tree')}),(0,0,{'view_mode':'form','view_id':ref('view_program_activity_form_chairman')})]"/&gt;
      &lt;field name="view_type"&gt;form&lt;/field&gt;
      &lt;field name="view_mode"&gt;tree,form,graph&lt;/field&gt;
      &lt;field name="domain"&gt;[('state', 'in', ['chairman_approve','done'])]&lt;/field&gt;
      &lt;!--&lt;field name="context"&gt;{'default_state': 'chairman_approve'}&lt;/field&gt;--&gt;
      &lt;!--&lt;field name="context"&gt;{'group_by':'sector_id'}&lt;/field&gt;--&gt;
      &lt;field name="context"&gt;{'search_default_group_sector_id': 1,'search_default_group_nature': 1}&lt;/field&gt;
  
      &lt;field name="help" type="html"&gt;
          &lt;p class="oe_view_nocontent_create"&gt;
              Create a new Program Activity.
          &lt;/p&gt;
      &lt;/field&gt;
  &lt;/record&gt;
  </code></pre>
  
  <p>Tree View:</p>
  
  <pre><code>&lt;record id="view_program_activity_tree" model="ir.ui.view"&gt;
      &lt;field name="name"&gt;program.activity.tree&lt;/field&gt;
      &lt;field name="model"&gt;program.activity&lt;/field&gt;
      &lt;field name="arch" type="xml"&gt;
  
          &lt;tree string="Program Activity" colors="green:type_id[1] == 'REVENUE'"&gt;
              &lt;field name="department_id"/&gt;
              &lt;field name="sector_id"/&gt;
              &lt;field name="major_program_id"/&gt;
              &lt;field name="minor_program_id"/&gt;
              &lt;field name="name"/&gt;
              &lt;field name="code"/&gt;
              &lt;field name="type_id"/&gt;
              &lt;field name="weight_from_minor"/&gt;
              &lt;field name="total_planned" sum="Total Planned"/&gt;
              &lt;field name="total_actual" sum="Total Actual"/&gt;
              &lt;field name="total_diff_amount" sum="Total Difference Amount"/&gt;
              &lt;field name="total_diff_percentage" sum="Total Difference Percentage %"/&gt;
          &lt;/tree&gt;
      &lt;/field&gt;
  &lt;/record&gt;
  </code></pre>
  
  <p>Please help or any suggestions are most appreciated. Thanks</p>