hunk.code_window:    <record id="crm_team_view_kanban_dashboard" model="ir.ui.view" >
           <field name="name">crm.team.view.kanban.dashboard</field>
           <field name="model">crm.team</field>
           <field name="priority">10</field>
           <field name="arch" type="xml">
               <kanban class="oe_background_grey o_kanban_dashboard o_crm_team_kanban" create="0" sample="1">
                   <field name="name"/>
                   <field name="user_id"/>
                   <field name="member_ids"/>
                   <field name="color"/>
                   <field name="currency_id"/>
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:             <kanban class="o_kanban_dashboard o_crm_team_kanban" create="0" sample="1">
  
hunk.file_path: addons/sales_team/views/crm_team_views.xml
hunk.type: replace
file: /** @odoo-module */
  import { registry } from "./registry";
  import { ErrorHandler } from "./utils/components";
  import { useBus } from "@web/core/utils/hooks";
  
  import { Component, xml } from "@odoo/owl";
  
  export class MainComponentsContainer extends Component {
      setup() {
          const mainComponents = registry.category("main_components");
          this.Components = mainComponents.getEntries();
          useBus(mainComponents, "UPDATE", () => {
              this.Components = mainComponents.getEntries();
              this.render();
          });
      }
  
      handleComponentError(error, C) {
          // remove the faulty component and rerender without it
          this.Components.splice(this.Components.indexOf(C), 1);
          this.render();
          /**
           * we rethrow the error to notify the user something bad happened.
           * We do it after a tick to make sure owl can properly finish its
           * rendering
           */
          Promise.resolve().then(() => {
              throw error;
          });
      }
  }
  
  MainComponentsContainer.template = xml`
  <div class="o-main-components-container">
      <t t-foreach="Components" t-as="C" t-key="C[0]">
          <ErrorHandler onError="error => this.handleComponentError(error, C)">
              <t t-component="C[1].Component" t-props="C[1].props"/>
          </ErrorHandler>
      </t>
  </div>
  `;
  MainComponentsContainer.components = { ErrorHandler };
  MainComponentsContainer.props = {};
  