hunk.code_window:             'user_id': self.user_portal.id,
           })
           self.assertEqual(rec.message_partner_ids, self.user_portal.partner_id | self.env.user.partner_id)
           with self.assertQueryCount(__system__=99, emp=119):  # com runbot: 98 - 119 // test_mail only: 98 - 116
               rec.write({
                   'name': 'Test2',
                   'umbrella_id': self.umbrella.id,
                   })
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:         with self.assertQueryCount(__system__=99, emp=120):  # com runbot: 98 - 120 // test_mail only: 98 - 116
  
hunk.file_path: addons/test_mail/tests/test_performance.py
hunk.type: replace
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo import api, fields, models
  
  
  class Partner(models.Model):
  
      _inherit = 'res.partner'
  
      website_tag_ids = fields.Many2many('res.partner.tag', 'res_partner_res_partner_tag_rel', 'partner_id', 'tag_id', string='Website tags')
  
  
  class Tags(models.Model):
  
      _name = 'res.partner.tag'
      _description = 'Partner Tags - These tags can be used on website to find customers by sector, or ...'
      _inherit = 'website.published.mixin'
  
      @api.model
      def get_selection_class(self):
          classname = ['default', 'primary', 'success', 'warning', 'danger']
          return [(x, str.title(x)) for x in classname]
  
      name = fields.Char('Category Name', required=True, translate=True)
      partner_ids = fields.Many2many('res.partner', 'res_partner_res_partner_tag_rel', 'tag_id', 'partner_id', string='Partners')
      classname = fields.Selection(get_selection_class, 'Class', default='default', help="Bootstrap class to customize the color", required=True)
      active = fields.Boolean('Active', default=True)
      website_published = fields.Boolean(default=True)
  