title: POS product order lines
body: <p>In Product form view there is Button Sale. When you activate it shows tree view with all sale orders for this product. My goal is to make the same button but it has to show all pos orders that was made with this product.</p>
  
  <p>i tried something like this but i know it's total garbage. If someone could explain to me how it works i will be more then grateful</p>
  
  <pre><code>&lt;record id="act_product_pos_sale" model="ir.actions.act_window"&gt;
              &lt;field name="name"&gt;POS Product Sale1&lt;/field&gt;
              &lt;field name="res_model"&gt;product.product&lt;/field&gt;
              &lt;field name="view_id" ref="product.product_product_tree_view"/&gt;
          &lt;/record&gt;
  
          &lt;record model="ir.ui.view" id="product_form_pos_sale_button"&gt;
              &lt;field name="name"&gt;product.product.sale.pos.order&lt;/field&gt;
              &lt;field name="model"&gt;product.product&lt;/field&gt;
              &lt;field name="inherit_id" ref="product.product_normal_form_view"/&gt;
              &lt;field name="arch" type="xml"&gt;
                  &lt;div name="button_box" position="inside"&gt;
                      &lt;button class="oe_stat_button" name="action_view_pos_product"
                          type="object" icon="fa-usd"&gt;
                          &lt;field string="POS" name="pos_product_order_total" widget="statinfo" /&gt;
                      &lt;/button&gt;
                  &lt;/div&gt;
              &lt;/field&gt;
          &lt;/record&gt;
  
  
  class ProductProduct(models.Model):
      _inherit = 'product.product'
  
   @api.multi
      def action_view_pos_product(self):
          OrderLine = self.env['pos.order.line']
          action = self.env.ref('sale.act_product_pos_sale')
          # action['domain'] = [('product_id', 'in', products.ids)]
          # action['context'] = {'': ,}
          return action
  </code></pre>