hunk.code_window:         <field name="name">Products</field>
           <field name="res_model">product.template</field>
           <field name="view_type">form</field>
           <field name="view_mode">kanban,tree,form</field>
           <field name="search_view_id" ref="product_template_search_view_website"/>
           <field name="context">{'search_default_published': 1, 'default_website_published': True}</field>
           <field name="help" type="html">
               <p class="o_view_nocontent_smiling_face">
                   Create a new product
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:         <field name="view_mode">kanban,tree,form,activity</field>
  
hunk.file_path: addons/website_sale/views/product_views.xml
hunk.type: replace
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from odoo import models, fields
  
  class Inheritance0(models.Model):
      _name = 'inheritance.0'
      _description = 'Inheritance Zero'
  
      name = fields.Char()
  
      def call(self):
          return self.check("model 0")
  
      def check(self, s):
          return "This is {} record {}".format(s, self.name)
  
  class Inheritance1(models.Model):
      _name = 'inheritance.1'
      _inherit = 'inheritance.0'
      _description = 'Inheritance One'
  
      def call(self):
          return self.check("model 1")
  