old_contents: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo import models, fields, api, SUPERUSER_ID
  
  class test_model(models.Model):
      _name = 'test_converter.test_model'
  
      char = fields.Char()
      integer = fields.Integer()
      float = fields.Float()
      numeric = fields.Float(digits=(16, 2))
      many2one = fields.Many2one('test_converter.test_model.sub', group_expand='_gbf_m2o')
      binary = fields.Binary()
      date = fields.Date()
      datetime = fields.Datetime()
      selection = fields.Selection([
          (1, "réponse A"),
          (2, "réponse B"),
          (3, "réponse C"),
          (4, "réponse <D>"),
      ])
      selection_str = fields.Selection([
          ('A', "Qu'il n'est pas arrivé à Toronto"),
          ('B', "Qu'il était supposé arriver à Toronto"),
          ('C', "Qu'est-ce qu'il fout ce maudit pancake, tabernacle ?"),
          ('D', "La réponse D"),
      ], string="Lorsqu'un pancake prend l'avion à destination de Toronto et "
                "qu'il fait une escale technique à St Claude, on dit:")
      html = fields.Html()
      text = fields.Text()
  
      # `base` module does not contains any model that implement the functionality
      # `group_expand`; test this feature here...
  
      @api.model
      def _gbf_m2o(self, subs, domain, order):
          sub_ids = subs._search([], order=order, access_rights_uid=SUPERUSER_ID)
          return subs.browse(sub_ids)
  
  
  class test_model_sub(models.Model):
      _name = 'test_converter.test_model.sub'
      name = fields.Char()
  
  
  class test_model_monetary(models.Model):
      _name = 'test_converter.monetary'
      value = fields.Float(digits=(16, 55))
  
new_contents: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo import models, fields, api, SUPERUSER_ID
  
  class test_model(models.Model):
      _name = 'test_converter.test_model'
  
      char = fields.Char()
      integer = fields.Integer()
      float = fields.Float()
      numeric = fields.Float(digits=(16, 2))
      many2one = fields.Many2one('test_converter.test_model.sub', group_expand='_gbf_m2o')
      binary = fields.Binary()
      date = fields.Date()
      datetime = fields.Datetime()
      selection = fields.Selection([
          (1, "réponse A"),
          (2, "réponse B"),
          (3, "réponse C"),
          (4, "réponse <D>"),
      ])
      selection_str = fields.Selection([
          ('A', u"Qu'il n'est pas arrivé à Toronto"),
          ('B', u"Qu'il était supposé arriver à Toronto"),
          ('C', u"Qu'est-ce qu'il fout ce maudit pancake, tabernacle ?"),
          ('D', u"La réponse D"),
      ], string=u"Lorsqu'un pancake prend l'avion à destination de Toronto et "
                u"qu'il fait une escale technique à St Claude, on dit:")
      html = fields.Html()
      text = fields.Text()
  
      # `base` module does not contains any model that implement the functionality
      # `group_expand`; test this feature here...
  
      @api.model
      def _gbf_m2o(self, subs, domain, order):
          sub_ids = subs._search([], order=order, access_rights_uid=SUPERUSER_ID)
          return subs.browse(sub_ids)
  
  
  class test_model_sub(models.Model):
      _name = 'test_converter.test_model.sub'
      name = fields.Char()
  
  
  class test_model_monetary(models.Model):
      _name = 'test_converter.monetary'
      value = fields.Float(digits=(16, 55))
  
subject: declare string containing unicode as unicode