title: How to apply a domain to a button?
body: <p>I want to pass a <em>default</em> domain from a button to be applied to a target action.<br>
  Something like this:</p>
  
  <pre><code>&lt;!-- action --&gt;
  &lt;act_window id="action_target"
              name="Project Categories"
              res_model="addon.model"
              view_mode="kanban,tree,form"/&gt;
  
  &lt;!-- button --&gt;
  &lt;button class="btn btn-primary"
          type="action"
          name="%(action_target)d"
          domain="[('field_x', '=', self.id)]"&gt;
    Do Something
  &lt;/button&gt;
  </code></pre>
  
  <p>The way I'm doing it right now is by triggering a function that opens a new action window:</p>
  
  <pre><code>@api.multi
  def action_target(self):
    self.ensure_one()
    return {
      'type': 'ir.actions.act_window',
      'src_model': self._name,
      'res_model': 'addon.model',
      'view_mode': 'kanban,tree,form',
      'domain': [('field_x', '=', self.id)],
      'target': 'main',
    }
  </code></pre>
  
  <p>The unwanted behavior that comes with the way I'm doing it is that is does not keep the path to the previous window like action button does:</p>
  
  <p><a href="https://i.stack.imgur.com/O8mwa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O8mwa.png" alt="enter image description here"></a></p>
  
  <p>I want it stay like:</p>
  
  <p><a href="https://i.stack.imgur.com/hZuUX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hZuUX.png" alt="enter image description here"></a></p>
  
  <p>How can that be achieved?</p>