hunk.code_window:                 <templates>
                       <t t-name="kanban-box">
                           <div class="oe_kanban_global_click">
                               <div class="o_kanban_tags_section">
                                   <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
                               </div>
                               <div class="o_kanban_image">
                                   <img t-att-src="kanban_image('fleet.vehicle', 'image_small', record.id.raw_value)"/>
                               </div>
                               <div class="oe_kanban_details">
                                   <strong>
  
hunk.labels: keep keep keep replace replace replace keep keep keep keep keep
hunk.file_path: addons/fleet/views/fleet_vehicle_views.xml
hunk.type: replace
file: # -*- coding: utf-8 -*-
  
  from odoo.tests import common
  
  
  class TestSparseFields(common.TransactionCase):
  
      def test_sparse(self):
          """ test sparse fields. """
          record = self.env['sparse_fields.test'].create({})
          self.assertFalse(record.data)
  
          partner = self.env.ref('base.main_partner')
          values = [
              ('boolean', True),
              ('integer', 42),
              ('float', 3.14),
              ('char', 'John'),
              ('selection', 'two'),
              ('partner', partner.id),
          ]
          for n, (key, val) in enumerate(values):
              record.write({key: val})
              self.assertEqual(record.data, dict(values[:n+1]))
  
          for key, val in values[:-1]:
              self.assertEqual(record[key], val)
          self.assertEqual(record.partner, partner)
  
          for n, (key, val) in enumerate(values):
              record.write({key: False})
              self.assertEqual(record.data, dict(values[n+1:]))
  
          # check reflection of sparse fields in 'ir.model.fields'
          names = [name for name, _ in values]
          domain = [('model', '=', 'sparse_fields.test'), ('name', 'in', names)]
          fields = self.env['ir.model.fields'].search(domain)
          self.assertEqual(len(fields), len(names))
          for field in fields:
              self.assertEqual(field.serialization_field_id.name, 'data')
  