'Utility method used to add an "Open Template" button in product views'

@api.multi
def open_product_template(self):

    self.ensure_one()
    return {'type': 'ir.actions.act_window', 'res_model': 'product.template', 'view_mode': 'form', 'res_id': self.product_tmpl_id.id, 'target': 'new'}
