hunk.code_window:         <record id="action_orders" model="ir.actions.act_window">
               <field name="name">Sales Orders</field>
               <field name="type">ir.actions.act_window</field>
               <field name="res_model">sale.order</field>
               <field name="view_type">form</field>
               <field name="view_mode">tree,kanban,form,calendar,pivot,graph</field>
               <field name="search_view_id" ref="sale_order_view_search_inherit_sale"/>
               <field name="context">{}</field>
               <field name="domain">[('state', 'not in', ('draft', 'sent', 'cancel'))]</field>
               <field name="help" type="html">
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:             <field name="view_mode">tree,kanban,form,calendar,pivot,graph,activity</field>
  
hunk.file_path: addons/sale/views/sale_views.xml
hunk.type: replace
file: # -*- coding: utf-8 -*-
  from odoo.http import request
  from odoo import models
  
  
  class IrHttp(models.AbstractModel):
      _inherit = 'ir.http'
  
      @classmethod
      def get_utm_domain_cookies(cls):
          return request.httprequest.host
  
      @classmethod
      def _set_utm(cls, response):
          if isinstance(response, Exception):
              return response
  
          domain = cls.get_utm_domain_cookies()
          for var, dummy, cook in request.env['utm.mixin'].tracking_fields():
              if var in request.params and request.httprequest.cookies.get(var) != request.params[var]:
                  response.set_cookie(cook, request.params[var], domain=domain)
          return response
  
      @classmethod
      def _dispatch(cls):
          response = super(IrHttp, cls)._dispatch()
          return cls._set_utm(response)
  
      @classmethod
      def _handle_exception(cls, exc):
          response = super(IrHttp, cls)._handle_exception(exc)
          return cls._set_utm(response)
  