old_contents: # -*- coding: utf-8 -*-
  from odoo import models
  
  
  class Product(models.Model):
      _inherit = 'product.template'
  
      def _extend_domain(self, domain, context):
          if not (context and context.get('search_tags')):
              return domain
          domain = (['|', ('tag_ids', 'ilike', context.get('search_tags'))] +
                    domain)
          return domain
  
      def search_count(self, domain):
          domain = self._extend_domain(domain, context)
          return super(Product, self).search_count(
              cr, uid, domain)
  
      def search(self, domain, offset=0, limit=None, order=None,
                 context=None, count=False):
          domain = self._extend_domain(domain, context)
          return super(Product, self).search(
              cr, uid, domain, offset=offset, limit=limit,
              order=order, count=count
          )
  
new_contents: # -*- coding: utf-8 -*-
  from odoo import models, api
  
  
  class Product(models.Model):
      _inherit = 'product.template'
  
      def _extend_domain(self, domain):
          if not (self.env.context.get('search_tags')):
              return domain
          domain = (['|', ('tag_ids', 'ilike', self.env.context.get('search_tags'))] +
                    domain)
          return domain
  
      @api.model
      def search_count(self, domain):
          domain = self._extend_domain(domain)
          return super(Product, self).search_count(domain)
  
      @api.model
      def search(self, domain, offset=0, limit=None, order=None, count=False):
          domain = self._extend_domain(domain)
          return super(Product, self).search(
              domain, offset=offset, limit=limit,
              order=order, count=count
          )
  
subject: update website_sale_search_tags for odoo 10.0