hunk.code_window:         <record id="action_quotations" model="ir.actions.act_window">
               <field name="name">Quotations</field>
               <field name="type">ir.actions.act_window</field>
               <field name="res_model">sale.order</field>
               <field name="search_view_id" ref="sale_order_view_search_inherit_quotation"/>
               <field name="context">{'search_default_my_quotation': 1}</field>
               <field name="help" type="html">
                 <p class="o_view_nocontent_smiling_face">
                   Create a new quotation, the first step of a new sale!
  
hunk.labels: keep keep keep add keep 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: add
file: <?xml version="1.0"?>
  <odoo>
          <!--
              crm.lead.tag views
          -->
          <record id="crm_lead_tag_form" model="ir.ui.view">
              <field name="name">crm.lead.tag.form</field>
              <field name="model">crm.lead.tag</field>
              <field name="arch" type="xml">
                  <form string="Lead Tags">
                      <group>
                          <field name="name"/>
                          <field name="color" groups="base.group_no_one"/>
                      </group>
                  </form>
              </field>
          </record>
  
          <record id="crm_lead_tag_tree" model="ir.ui.view">
              <field name="name">crm.lead.tag.tree</field>
              <field name="model">crm.lead.tag</field>
              <field name="arch" type="xml">
                  <tree string="Lead Tags">
                      <field name="name"/>
                  </tree>
              </field>
          </record>
  
          <!--
              crm.lead (as Lead) views
          -->
          <act_window
                  id="act_crm_opportunity_calendar_event_new"
                  name="Meetings"
                  res_model="calendar.event"
                  view_mode="tree,form,calendar"
                  context="{'default_duration': 4.0, 'default_opportunity_id': active_id}"
                  view_type="form"/>
  
          <record id="crm_case_form_view_leads" model="ir.ui.view">
          <field name="name">crm.lead.form.lead</field>
          <field name="model">crm.lead</field>
          <field name="arch" type="xml">
              <form string="Leads Form">
                  <header>
                      <button name="%(crm.action_crm_lead2opportunity_partner)d" string="Convert to Opportunity" type="action"
                              help="Convert to Opportunity" class="oe_highlight" attrs="{'invisible': [('type', '=', 'opportunity')]}"/>
                      <button name="toggle_active"
                          string="Restore"
                          type="object"
                          attrs="{'invisible': ['|', ('probability', '&gt;', 0), ('active', '=', True)]}"/>
                      <button name="action_set_lost"
                          string="Mark as Lost"
                          type="object"
                          attrs="{'invisible': ['&amp;', ('probability', '=', 0), ('active', '=', False)]}"/>
                  </header>
                  <sheet>
                      <field name="active" invisible="1"/>
                      <div class="oe_button_box" name="button_box">
                      </div>
                      <div class="badge-pill badge-danger float-right" attrs="{'invisible': ['|', ('probability', '&gt;', 0), ('active', '=', True)]}">Lost</div>
                      <div class="badge-pill badge-success float-right" attrs="{'invisible': [('probability', '&lt;', 100)]}">Won</div>
                      <div class="oe_title">
                          <label for="name" class="oe_edit_only" string="Lead"/>
                          <h1><field name="name" placeholder="Describe the lead..."/></h1>
                      </div>
                      <group>
                          <group>
                              <!-- Preload all the partner's information -->
                              <field name="partner_id" string="Customer"
                                      widget="res_partner_many2one"
                                      context="{'default_name': contact_name, 'default_street': street, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_function': function, 'default_phone': phone, 'default_mobile': mobile, 'default_email': email_from, 'default_user_id': user_id, 'default_team_id': team_id, 'default_website': website, 'show_vat': True}"
                                      groups="base.group_no_one"/>
                              <field name="partner_name" string="Company Name"/>
                              <label for="street" string="Address"/>
                              <div class="o_address_format">
                                  <field name="street" placeholder="Street..." class="o_address_street"/>
                                  <field name="street2" placeholder="Street 2..." class="o_address_street"/>
                                  <field name="city" placeholder="City" class="o_address_city"/>
                                  <field name="state_id" class="o_address_state" placeholder="State" options='{"no_open": True}'/>
                                  <field name="zip" placeholder="ZIP" class="o_address_zip"/>
                                  <field name="country_id" placeholder="Country" class="o_address_country" options='{"no_open": True, "no_create": True}'/>
                              </div>
                              <field name="website" widget="url" placeholder="e.g. www.odoo.com"/>
                          </group>
                          <group>
                              <label for="contact_name"/>
                              <div class="o_row">
                                  <field name="contact_name"/>
                                  <field name="title" placeholder="Title" domain="[]" options='{"no_open": True}'/>
                              </div>
                              <field name="is_blacklisted" invisible="1"/>
                              <label for="email_from" class="oe_inline"/>
                              <div class="o_row o_row_readonly">
                                  <i class="fa fa-ban" style="color: red;" role="img" title="This email is blacklisted for mass mailing"
                                      aria-label="Blacklisted" attrs="{'invisible': [('is_blacklisted', '=', False)]}" groups="base.group_user"></i>
                                  <field name="email_from" widget="email"/>
                              </div>
                              <field name="function"/>
                              <field name="phone" widget="phone"/>
                              <field name="mobile"/>
                          </group>
                          <group>
                              <field name="user_id" domain="[('share', '=', False)]"
                                  context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'sales_team.group_sale_salesman_all_leads'], 'team_id': team_id}"/>
                              <field name="team_id" widget="selection" domain="[('use_leads','=',True)]"/>
                              <field name="type" invisible="1"/>
                          </group>
                          <group>
                              <field name="priority" widget="priority"/>
                              <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}"/>
                          </group>
                      </group>
                      <notebook>
                          <page string="Internal Notes">
                              <field name="description"/>
                          </page>
                          <page name="extra" string="Extra Info">
                              <group>
                                  <group string="Email">
                                      <field name="message_bounce" readonly="1" groups="base.group_no_one"/>
                                  </group>
                                  <group string="Tracking" groups="base.group_multi_company,base.group_no_one" name="categorization">
                                      <field name="company_id"
                                          groups="base.group_multi_company"
                                          options="{'no_create': True}"/>
                                      <field name="campaign_id" />
                                      <field name="medium_id"/>
                                      <field name="source_id"/>
                                      <field name="referred"/>
                                  </group>
                                  <group string="Analysis" groups="base.group_no_one">
                                      <field name="date_open"/>
                                      <field name="date_closed"/>
                                      <field name="probability"/>
                                  </group>
                              </group>
                          </page>
                      </notebook>
                  </sheet>
                  <div class="oe_chatter">
                      <field name="message_follower_ids" widget="mail_followers"/>
                      <field name="activity_ids" widget="mail_activity"/>
                      <field name="message_ids" widget="mail_thread" options="{'post_refresh': 'recipients'}"/>
                  </div>
              </form>
          </field>
          </record>
  
          <record id="crm_case_tree_view_leads" model="ir.ui.view">
              <field name="name">crm.lead.tree.lead</field>
              <field name="model">crm.lead</field>
              <field name="arch" type="xml">
                  <tree string="Leads" decoration-bf="message_needaction==True" decoration-muted="probability == 100">
                      <field name="date_deadline" invisible="1"/>
                      <field name="create_date"/>
                      <field name="name" string="Lead"/>
                      <field name="contact_name"/>
                      <field name="city"/>
                      <field name="country_id"/>
                      <field name="email_from"/>
                      <field name="phone"/>
                      <field name="user_id" invisible="1"/>
                      <field name="partner_id" invisible="1"/>
                      <field name="team_id"/>
                      <field name="active" invisible="1"/>
                      <field name="probability" invisible="1"/>
                      <field name="campaign_id" invisible="1"/>
                      <field name="referred" invisible="1"/>
                      <field name="medium_id" invisible="1"/>
                      <field name="message_needaction" invisible="1"/>
                  </tree>
              </field>
          </record>
  
          <record id="view_crm_lead_kanban" model="ir.ui.view">
              <field name="name">crm.lead.kanban</field>
              <field name="model">crm.lead</field>
              <field name="priority" eval="100"/>
              <field name="arch" type="xml">
                  <kanban class="o_kanban_mobile" archivable="false">
                      <field name="name"/>
                      <field name="contact_name"/>
                      <field name="priority"/>
                      <field name="tag_ids"/>
                      <field name="user_id"/>
                      <field name="message_needaction_counter"/>
                      <field name="activity_ids"/>
                      <field name="activity_state"/>
                      <templates>
                          <t t-name="kanban-box">
                              <div t-attf-class="oe_kanban_content oe_kanban_global_click">
                                  <div>
                                      <strong class="o_kanban_record_title"><span><field name="name"/></span></strong>
                                  </div>
                                  <div>
                                      <span class="o_kanban_record_subtitle"><field name="contact_name"/></span>
                                  </div>
                                  <div>
                                    <field name="tag_ids"/>
                                  </div>
                                  <div class="o_kanban_record_bottom">
                                      <div class="oe_kanban_bottom_left">
                                          <field name="priority" widget="priority"/>
                                          <t t-if="record.message_needaction_counter.raw_value">
                                              <span role="alert" class="oe_kanban_mail_new" title="Unread Messages"><i class="fa fa-comments" aria-label="Messages" role="img"/><t t-raw="record.message_needaction_counter.raw_value"/></span>
                                          </t>
                                          <div class="o_kanban_inline_block">
                                              <field name="activity_ids" widget="kanban_activity"/>
                                          </div>
                                      </div>
                                      <div class="oe_kanban_bottom_right">
                                          <img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)" t-att-title="record.user_id.value" t-att-alt="record.user_id.value" width="24" height="24" class="oe_kanban_avatar float-right"/>
                                      </div>
                                  </div>
                              </div>
                          </t>
                      </templates>
                  </kanban>
              </field>
          </record>
  
          <record  id="crm_case_calendar_view_leads" model="ir.ui.view">
              <field name="name">crm.lead.calendar.lead</field>
              <field name="model">crm.lead</field>
              <field name="priority" eval="2"/>
              <field name="arch" type="xml">
                  <calendar string="Leads Generation" date_start="activity_date_deadline" color="user_id">
                      <field name="name"/>
                      <field name="partner_name"/>
                  </calendar>
              </field>
          </record>
  
          <record id="view_create_opportunity_simplified" model="ir.ui.view">
              <field name="name">crm.lead.form.simple</field>
              <field name="model">crm.lead</field>
              <field name="priority">1000</field>
              <field name="arch" type="xml">
                  <form string="Create an Opportunity">
                      <sheet>
                          <group>
                              <group>
                                  <field name="name" string="Opportunity Title" placeholder="e.g. Customer Deal"/>
                                  <field name="partner_id" widget="res_partner_many2one" domain="[('customer', '=', True)]" context="{'search_default_customer': 1, 'show_vat': True}"/>
                                  <field name="partner_name" invisible="1"/>
                                  <field name="street" invisible="1"/>
                                  <field name="street2" invisible="1"/>
                                  <field name="city" invisible="1"/>
                                  <field name="state_id" invisible="1"/>
                                  <field name="zip" invisible="1"/>
                                  <field name="country_id" invisible="1"/>
                                  <field name="company_id" invisible="1"/>
                                  <field name="company_currency" invisible="1"/>
                                  <label for="planned_revenue"/>
                                  <div class="o_row">
                                      <field name="planned_revenue"/>
                                  </div>
                                  <field name="priority" widget="priority"/>
                              </group>
                          </group>
                          <footer>
                              <button string="Create" name="close_dialog" type="object" class="btn-primary"/>
                              <button string="Create &amp; Edit" name="edit_dialog" type="object" class="btn-primary"/>
                              <button string="Discard" class="btn-secondary" special="cancel"/>
                          </footer>
                          <field name="partner_name" invisible="1"/>
                          <field name="contact_name" invisible="1"/>
                          <field name="title" invisible="1"/>
                          <field name="street" invisible="1"/>
                          <field name="street2" invisible="1"/>
                          <field name="city" invisible="1"/>
                          <field name="state_id" invisible="1"/>
                          <field name="country_id" invisible="1"/>
                          <field name="email_from" invisible="1"/>
                          <field name="phone" invisible="1"/>
                          <field name="mobile" invisible="1"/>
                          <field name="zip" invisible="1"/>
                          <field name="function" invisible="1"/>
                          <field name="website" invisible="1"/>
                      </sheet>
                  </form>
              </field>
          </record>
  
          <record id="create_opportunity_simplified" model="ir.actions.act_window">
              <field name="name">Create an Opportunity</field>
              <field name="res_model">crm.lead</field>
              <field name="view_type">form</field>
              <field name="view_mode">form</field>
              <field name="view_id" ref="view_create_opportunity_simplified"/>
              <field name="target">new</field>
          </record>
  
          <record id="quick_create_opportunity_form" model="ir.ui.view">
              <field name="name">crm.lead.form.quick_create</field>
              <field name="model">crm.lead</field>
              <field name="priority">1000</field>
              <field name="arch" type="xml">
                  <form>
                      <group>
                          <field name="name"/>
                          <field name="partner_id" widget="res_partner_many2one" domain="[('customer', '=', True)]" context="{'search_default_customer': 1, 'show_vat': True}"/>
                          <field name="planned_revenue" widget="monetary" options="{'currency_field': 'company_currency'}"/>
                          <field name="company_currency" invisible="1"/>
                          <field name="company_id" invisible="1"/>
                          <field name="priority" nolabel="1" widget="priority"/>
                      </group>
                  </form>
              </field>
          </record>
  
          <record id="crm_case_kanban_view_leads" model="ir.ui.view">
              <field name="name">crm.lead.kanban.lead</field>
              <field name="model">crm.lead</field>
              <field name="priority" eval="1"/>
              <field name="arch" type="xml">
                  <kanban default_group_by="stage_id" class="o_kanban_small_column o_opportunity_kanban" on_create="quick_create" quick_create_view="crm.quick_create_opportunity_form"
                      archivable="false">
                      <field name="stage_id" options='{"group_by_tooltip": {"requirements": "Description", "legend_priority": "Use of stars"}}'/>
                      <field name="color"/>
                      <field name="priority"/>
                      <field name="planned_revenue"/>
                      <field name="kanban_state"/>
                      <field name="activity_date_deadline"/>
                      <field name="user_email"/>
                      <field name="user_id"/>
                      <field name="partner_address_email"/>
                      <field name="message_needaction_counter"/>
                      <field name="partner_id"/>
                      <field name="activity_summary"/>
                      <field name="active"/>
                      <field name="company_currency"/>
                      <field name="activity_state" />
                      <field name="activity_ids" />
                      <progressbar field="activity_state" colors='{"planned": "success", "today": "warning", "overdue": "danger"}' sum_field="planned_revenue" help="This bar allows to filter the opportunities based on scheduled activities."/>
                      <templates>
                          <t t-name="kanban-box">
                              <div t-attf-class="#{kanban_color(record.color.raw_value)} oe_kanban_global_click">
                                  <div class="o_dropdown_kanban dropdown">
  
                                      <a class="dropdown-toggle o-no-caret btn" role="button" data-toggle="dropdown" href="#" aria-label="Dropdown menu" title="Dropdown menu">
                                          <span class="fa fa-ellipsis-v"/>
                                      </a>
                                      <div class="dropdown-menu" role="menu">
                                          <t t-if="widget.editable"><a role="menuitem" type="edit" class="dropdown-item">Edit</a></t>
                                          <t t-if="widget.deletable"><a role="menuitem" type="delete" class="dropdown-item">Delete</a></t>
                                          <ul class="oe_kanban_colorpicker" data-field="color"/>
                                      </div>
                                  </div>
                                  <div class="oe_kanban_content">
                                      <div>
                                          <strong class="o_kanban_record_title"><field name="name"/></strong>
                                      </div>
                                      <div>
                                          <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
                                      </div>
                                      <div class="text-muted o_kanban_record_subtitle">
                                          <t t-if="record.planned_revenue.raw_value"><field name="planned_revenue" widget="monetary" options="{'currency_field': 'company_currency'}"/><span t-if="record.partner_id.value">,</span></t> <span t-if="record.partner_id.value"> <t t-esc="record.partner_id.value"/></span>
                                      </div>
  
                                      <div class="o_kanban_record_bottom">
                                          <div class="oe_kanban_bottom_left">
                                              <field name="priority" widget="priority" groups="base.group_user"/>
                                              <t t-if="record.message_needaction_counter.raw_value">
                                                  <span role="alert" class='oe_kanban_mail_new' title='Unread Messages'><i class='fa fa-comments' aria-label="Unread messages" role="img"/><t t-raw="record.message_needaction_counter.raw_value"/></span>
                                              </t>
                                              <field name="activity_ids" widget="kanban_activity"/>
                                          </div>
                                          <div class="oe_kanban_bottom_right">
                                              <img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)" t-att-title="record.user_id.value" t-att-alt="record.user_id.value" width="24" height="24" class="oe_kanban_avatar"/>
                                          </div>
                                      </div>
                                  </div>
                                  <div class="oe_clear"/>
                              </div>
                          </t>
                      </templates>
                  </kanban>
              </field>
          </record>
  
          <record id="view_crm_case_leads_filter" model="ir.ui.view">
              <field name="name">crm.lead.search.lead</field>
              <field name="model">crm.lead</field>
              <field name="arch" type="xml">
                  <search string="Search Leads">
                      <field name="tag_ids" string="Tag" filter_domain="[('tag_ids', 'ilike', self)]"/>
                      <field name="user_id"/>
                      <field name="team_id"/>
                      <field name="partner_id" operator="child_of" string="Customer"/>
                      <field name="city"/>
                      <field name="country_id"/>
                      <field name="create_date"/>
                      <field name="lost_reason"/>
                      <field name="medium_id"/>
                      <field name="campaign_id"/>
                      <field name="source_id"/>
                      <separator />
                      <filter string="My Leads"
                              name="assigned_to_me"
                              domain="[('user_id', '=', uid)]"
                              help="Leads that are assigned to me"/>
                      <separator />
                      <filter string="Leads" name="leads" domain="[('type', '=', 'lead')]"/>
                      <filter string="Opportunities" name="opportunities" domain="[('type', '=', 'opportunity')]"/>
                      <separator />
                      <filter string="Won" name="won"
                              domain="[('probability', '=', 100)]"/>
                      <filter string="Lost" name="lost"
                              domain="['&amp;', ('probability', '=', 0), ('active', '=', False)]"/>
                      <group expand="0" string="Group By">
                          <filter string="Salesperson" name="salesperson" context="{'group_by':'user_id'}"/>
                          <filter string="Sales Channel" name="saleschannel" context="{'group_by':'team_id'}"/>
                          <filter name="stage" string="Stage" context="{'group_by':'stage_id'}"/>
                          <filter name="city" string="City" context="{'group_by': 'city'}"/>
                          <filter string="Country" name="country" context="{'group_by':'country_id'}" />
                          <filter string="Lost Reason" name="lostreason" context="{'group_by':'lost_reason'}"/>
                          <filter string="Company" name="company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
                          <filter string="Campaign" name="compaign" domain="[]" context="{'group_by':'campaign_id'}"/>
                          <filter string="Medium" name="medium" domain="[]" context="{'group_by':'medium_id'}"/>
                          <filter string="Source" name="source" domain="[]" context="{'group_by':'source_id'}"/>
                          <separator orientation="vertical" />
                          <filter string="Creation Date" context="{'group_by':'create_date:month'}" name="month"/>
                          <filter string="Conversion Date" name="date_conversion" context="{'group_by':'date_conversion'}"/>
                          <filter string="Expected Closing Date" name="date_deadline" context="{'group_by':'date_deadline'}"/>
                          <filter string="Closed Date" name="date_closed" context="{'group_by':'date_closed'}"/>
                      </group>
                  </search>
              </field>
          </record>
  
          <!--
              crm.lead (as Opportunity) views
          -->
          <record id="crm_case_form_view_oppor" model="ir.ui.view">
              <field name="name">crm.lead.form.opportunity</field>
              <field name="model">crm.lead</field>
              <field name="priority">20</field>
              <field name="arch" type="xml">
                  <form string="Opportunities" class="o_opportunity_form">
                      <header>
                          <button name="action_set_won_rainbowman" string="Mark Won"
                                  type="object" class="oe_highlight"
                                  attrs="{'invisible': ['|', ('active','=',False), ('probability', '=', 100)]}"/>
                          <button name="%(crm.crm_lead_lost_action)d" string="Mark Lost"
                                  type="action" class="oe_highlight"
                                  context="{'default_lead_id': active_id}"
                                  attrs="{'invisible': [('active', '=', False),('probability', '&lt;', 100)]}"/>
                          <button name="toggle_active"
                              string="Restore"
                              type="object"
                              attrs="{'invisible': ['|', ('probability', '&gt;', 0), ('active', '=', True)]}"/>
                          <field name="stage_id" widget="statusbar"
                              options="{'clickable': '1', 'fold_field': 'fold'}"
                              domain="['|', ('team_id', '=', team_id), ('team_id', '=', False)]"
                              attrs="{'invisible': [('active', '=', False)]}"/>
                      </header>
                      <sheet>
                          <field name="active" invisible="1"/>
                          <div class="oe_button_box" name="button_box">
                              <button class="oe_stat_button" type="object"
                                  context="{'partner_id': partner_id}"
                                  name="action_schedule_meeting" icon="fa-calendar">
                                  <div class="o_stat_info">
                                      <field name="meeting_count" class="o_stat_value"/>
                                      <span class="o_stat_text" attrs="{'invisible': [('meeting_count', '&lt;', 2)]}"> Meetings</span>
                                      <span class="o_stat_text" attrs="{'invisible': [('meeting_count', '&gt;', 1)]}"> Meeting</span>
                                  </div>
                              </button>
                          </div>
                          <div class="badge-pill badge-danger float-right" attrs="{'invisible': ['|', ('probability', '&gt;', 0), ('active', '=', True)]}">Lost</div>
                          <div class="badge-pill badge-success float-right" attrs="{'invisible': [('probability', '&lt;', 100)]}">Won</div>
                          <div class="oe_title">
                              <label for="name" class="oe_edit_only"/>
                              <h1><field name="name" placeholder="e.g. Product Pricing"/></h1>
                              <h2 class="o_row">
                                  <div>
                                      <label for="planned_revenue" class="oe_edit_only" />
                                      <div class="o_row">
                                          <field name="company_currency" invisible="1"/>
                                          <field name="planned_revenue" widget='monetary' options="{'currency_field': 'company_currency'}"/>
                                          <span class="oe_grey"> at </span>
                                      </div>
                                  </div>
                                  <div>
                                      <label for="probability" class="oe_edit_only"/>
                                      <div class="o_row">
                                          <field name="probability" widget="integer"/>
                                          <span>%%</span>
                                      </div>
                                  </div>
                              </h2>
                          </div>
                          <group>
                              <group>
                                  <field name="partner_id"
                                      widget="res_partner_many2one"
                                      string="Customer" domain="[('customer', '=', True)]"
                                      context="{'search_default_customer': 1,
                                          'default_name': partner_name, 'default_street': street,
                                          'default_street2': street2, 'default_city': city,
                                          'default_state_id': state_id, 'default_zip': zip,
                                          'default_country_id': country_id, 'default_function': function,
                                          'default_phone': phone, 'default_mobile': mobile,
                                          'default_email': email_from,
                                          'default_user_id': user_id, 'default_team_id': team_id, 'default_website': website,
                                          'show_vat': True,
                                      }"
                                  />
                                  <field name="is_blacklisted" invisible="1"/>
                                  <field name="partner_is_blacklisted" invisible="1"/>
                                  <label for="email_from" class="oe_inline"/>
                                  <div class="o_row o_row_readonly">
                                      <i class="fa fa-ban" style="color: red;" role="img" title="This email is blacklisted for mass mailing"
                                          aria-label="Blacklisted" attrs="{'invisible': ['|', ('is_blacklisted', '=', False), ('partner_address_email', '!=', False)]}" groups="base.group_user"></i>
                                      <field name="email_from"
                                         attrs="{'invisible': [('partner_address_email', '!=', False)]}"
                                         string="Email"
                                         widget="email"/>
                                      <i class="fa fa-ban" style="color: red;" role="img" title="This email is blacklisted for mass mailing"
                                          aria-label="Blacklisted" attrs="{'invisible': ['|', ('partner_is_blacklisted', '=', False), ('partner_address_email', '=', False)]}" groups="base.group_user"></i>
                                      <field name="partner_address_email"
                                         attrs="{'invisible': [('partner_address_email', '==', False)]}"
                                         widget="email"
                                         string="Email"/>
                                  </div>
                                  <field name="partner_address_phone"
                                         attrs="{'invisible': [('partner_address_phone', '==', False)]}"
                                         readonly="1"
                                         widget="phone"
                                         string="Phone"/>
                                  <field name="phone"
                                         attrs="{'invisible': [('partner_address_phone', '!=', False)]}"
                                         widget="phone"/>
                              </group>
  
                              <group>
                                  <field name="date_deadline"/>
                              </group>
  
                              <group>
                                  <field name="user_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'sales_team.group_sale_salesman_all_leads'], 'team_id': team_id}" domain="[('share', '=', False)]"/>
                                  <field name="team_id" widget="selection"/>
                              </group>
                              <group>
                                  <field name="priority" widget="priority"/>
                                  <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}"/>
                                  <field name="lost_reason" attrs="{'invisible': [('active', '=', True)]}"/>
                                  <field name="date_conversion" invisible="1"/>
                              </group>
                          </group>
  
                          <notebook colspan="4">
                          <page string="Internal Notes">
                              <field name="description"/>
                          </page>
                          <page name="lead" string="Followup">
                              <group>
                                  <group string="Initial Contact Information">
                                      <field name="partner_name"/>
                                      <label for="street" string="Address"/>
                                      <div class="o_address_format">
                                          <field name="street" placeholder="Street..." class="o_address_street"/>
                                          <field name="street2" placeholder="Street 2..." class="o_address_street"/>
                                          <field name="city" placeholder="City" class="o_address_city"/>
                                          <field name="state_id" class="o_address_state" placeholder="State" options='{"no_open": True}'/>
                                          <field name="zip" placeholder="ZIP" class="o_address_zip"/>
                                          <field name="country_id" placeholder="Country" class="o_address_country" options='{"no_open": True, "no_create": True}'/>
                                      </div>
                                      <field name="website" widget="url" placeholder="e.g. www.odoo.com"/>
                                  </group>
  
                                  <group class="mt48">
                                      <label for="contact_name"/>
                                      <div class="o_row">
                                          <field name="contact_name"/>
                                          <field name="title" placeholder="Title" domain="[]" options='{"no_open": True}'/>
                                      </div>
                                      <field name="function"/>
                                      <field name="mobile"/>
                                  </group>
                                  <group string="Marketing">
                                      <field name="campaign_id" />
                                      <field name="medium_id" />
                                      <field name="source_id" />
                                  </group>
                                  <group string="Misc" name="Misc">
                                      <field name="day_open" groups="base.group_no_one"/>
                                      <field name="day_close" groups="base.group_no_one"/>
                                      <field name="referred"/>
                                      <field name="type" invisible="1"/>
                                  </group>
                              </group>
                          </page>
                          </notebook>
                      </sheet>
                      <div class="oe_chatter">
                          <field name="message_follower_ids" widget="mail_followers"/>
                          <field name="activity_ids" widget="mail_activity"/>
                          <field name="message_ids" widget="mail_thread" options="{'post_refresh': 'recipients'}"/>
                      </div>
                  </form>
              </field>
          </record>
  
          <record id="crm_case_tree_view_oppor" model="ir.ui.view">
              <field name="name">crm.lead.tree.opportunity</field>
              <field name="model">crm.lead</field>
              <field name="arch" type="xml">
                  <tree string="Opportunities" decoration-bf="message_needaction==True" decoration-muted="probability == 100" decoration-danger="activity_date_deadline and (activity_date_deadline &lt; current_date)">
                      <field name="date_deadline" invisible="1"/>
                      <field name="create_date"/>
                      <field name="name" string="Opportunity"/>
                      <field name="partner_id" string="Customer"/>
                      <field name="country_id"/>
                      <field name="activity_date_deadline"/>
                      <field name="activity_summary"/>
                      <field name="medium_id" invisible="1"/>
                      <field name="campaign_id" invisible="1"/>
                      <field name="source_id" invisible="1"/>
                      <field name="stage_id"/>
                      <field name="planned_revenue" sum="Expected Revenues"/>
                      <field name="probability" avg="Avg. of Probability"/>
                      <field name="team_id"/>
                      <field name="user_id"/>
                      <field name="referred" invisible="1"/>
                      <field name="priority" invisible="1"/>
                      <field name="message_needaction" invisible="1"/>
                      <field name="probability" invisible="1"/>
                      <field name="write_date" invisible="1"/>
                  </tree>
              </field>
          </record>
  
          <record id="crm_lead_view_graph" model="ir.ui.view">
              <field name="name">crm.lead.view.graph</field>
              <field name="model">crm.lead</field>
              <field name="arch" type="xml">
                  <graph string="Opportunities">
                      <field name="stage_id" type="col"/>
                      <field name="user_id" type="row"/>
                  </graph>
              </field>
          </record>
  
          <record id="crm_lead_view_pivot" model="ir.ui.view">
              <field name="name">crm.lead.view.pivot</field>
              <field name="model">crm.lead</field>
              <field name="arch" type="xml">
                  <pivot string="Pipeline Analysis" disable_linking="True">
                      <field name="create_date" interval="month" type="row"/>
                      <field name="stage_id" type="col"/>
                      <field name="planned_revenue" type="measure"/>
                  </pivot>
              </field>
          </record>
  
          <record id="crm_lead_view_tree_activity" model="ir.ui.view">
              <field name="name">crm.lead.tree.opportunity.next.activity</field>
              <field name="model">crm.lead</field>
              <field name="arch" type="xml">
                  <tree string="Next Activities" decoration-danger="activity_date_deadline and (activity_date_deadline &lt; current_date)" default_order="activity_date_deadline">
                      <field name="name"/>
                      <field name="partner_id"/>
                      <field name="activity_date_deadline"/>
                      <field name="activity_type_id"/>
                      <field name="activity_summary"/>
                      <field name="stage_id"/>
                      <field name="planned_revenue"/>
                      <field name="date_deadline"/>
                  </tree>
              </field>
          </record>
  
          <record id="view_crm_case_opportunities_filter" model="ir.ui.view">
              <field name="name">crm.lead.search.opportunity</field>
              <field name="model">crm.lead</field>
              <field name="arch" type="xml">
                  <search string="Search Opportunities">
                      <field name="name" string="Opportunity" filter_domain="['|','|','|',('partner_id','ilike',self),('partner_name','ilike',self),('email_from','ilike',self),('name', 'ilike', self)]"/>
                      <field name="tag_ids" string="Tag" filter_domain="[('tag_ids', 'ilike', self)]"/>
                      <field name="stage_id" domain="[]"/>
                      <field name="user_id"/>
                      <field name="team_id"/>
                      <field name="partner_id" operator="child_of" string="Customer"/>
                      <field name="city"/>
                      <field name="country_id"/>
                      <field name="activity_type_id"/>
                      <field name="activity_summary"/>
                      <field name="probability"/>
                      <field name="lost_reason"/>
                      <field name="date_conversion"/>
                      <separator/>
                      <filter string="My Pipeline" name="assigned_to_me"
                          domain="[('user_id', '=', uid)]"
                          help="Opportunities that are assigned to me"/>
                      <filter string="Unassigned" name="unassigned"
                          domain="[('user_id','=', False)]" help="No salesperson"/>
                      <separator/>
                      <filter string="Unread Messages" name="message_needaction" domain="[('message_needaction','=',True)]"/>
                      <separator/>
                      <filter string="Overdue Opportunities" name="overdue_opp"
                              domain="[('date_deadline', '&lt;', context_today().strftime('%Y-%m-%d')), ('date_closed', '=', False)]"
                              help="Opportunities with a date of Expected Closing which is in the past"/>
                      <filter string="Creation Date" name="creation_date" date="create_date"/>
                      <filter string="Expected Closing" name="close_this_month" date="date_deadline"/>
                      <filter string="Closed Date" name="close_date" date="date_closed"/>
                      <separator/>
                      <filter string="Won" name="won" domain="['&amp;', ('active', '=', True), ('stage_id.probability', '=', 100)]"/>
                      <filter string="Lost" name="lost" domain="['&amp;', ('active', '=', False), ('probability', '=', 0)]"/>
                      <separator/>
                      <filter string="Activities Todo" name="activities_my"
                              domain="[('activity_ids.user_id', '=', uid)]"/>
                      <separator/>
                      <filter string="Late Activities" name="activities_overdue"
                              domain="[('activity_ids.date_deadline', '&lt;', context_today().strftime('%Y-%m-%d'))]"
                              help="Show all opportunities for which the next action date is before today"/>
                      <filter string="Today Activities" name="activities_today"
                              domain="[('activity_ids.date_deadline', '=', context_today().strftime('%Y-%m-%d'))]"/>
                      <filter string="Future Activities" name="activities_upcoming_all"
                          domain="[('activity_ids.date_deadline', '&gt;', context_today().strftime('%Y-%m-%d'))
                          ]"/>
                      <group expand="0" string="Group By" colspan="16">
                          <filter string="Salesperson" name="salesperson" context="{'group_by':'user_id'}"/>
                          <filter string="Sales Team" name="saleschannel" context="{'group_by':'team_id'}"/>
                          <filter name="stage" string="Stage" context="{'group_by':'stage_id'}"/>
                          <filter name="city" string="City" context="{'group_by': 'city'}"/>
                          <filter string="Country" name="country" context="{'group_by':'country_id'}" />
                          <filter string="Lost Reason" name="lostreason" context="{'group_by':'lost_reason'}"/>
                          <filter string="Company" name="company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
                          <filter string="Campaign" name="compaign" domain="[]" context="{'group_by':'campaign_id'}"/>
                          <filter string="Medium" name="medium" domain="[]" context="{'group_by':'medium_id'}"/>
                          <filter string="Source" name="source" domain="[]" context="{'group_by':'source_id'}"/>
                          <separator orientation="vertical" />
                          <filter string="Creation Date" context="{'group_by':'create_date:month'}" name="month"/>
                          <filter string="Conversion Date" name="date_conversion" context="{'group_by': 'date_conversion'}" groups="crm.group_use_lead"/>
                          <filter string="Closed Date" name="date_closed" context="{'group_by':'date_closed'}"/>
                          <filter string="Expected Closing Date" name="date_deadline" context="{'group_by':'date_deadline'}"/>
                      </group>
                  </search>
              </field>
          </record>
  
          <!--
              crm.lost.reason views
          -->
          <record id="crm_lost_reason_view_search" model="ir.ui.view">
              <field name="name">crm.lost.reason.view.search</field>
              <field name="model">crm.lost.reason</field>
              <field name="arch" type="xml">
                  <search string="Search Opportunities">
                      <filter string="Include archived" name="archived"
                              domain="['|', ('active', '=', True), ('active', '=', False)]"/>
                  </search>
              </field>
          </record>
  
          <record id="crm_lost_reason_view_form" model="ir.ui.view">
              <field name="name">crm.lost.reason.form</field>
              <field name="model">crm.lost.reason</field>
              <field name="arch" type="xml">
                  <form string="Channel">
                      <group>
                          <field name="name"/>
                          <field name="active"/>
                      </group>
                  </form>
              </field>
          </record>
  
          <!--
              MASS MAILING
          -->
          <act_window name="Send an email"
                  res_model="mail.compose.message"
                  src_model="crm.lead"
                  view_mode="form"
                  multi="True"
                  target="new"
                  key2="client_action_multi"
                  id="crm.action_lead_mass_mail"
                  context="{
                              'default_composition_mode': 'mass_mail',
                              'default_email_to':'{($object.email or \'\')|safe}',
                              'default_use_template': True,
                              'default_template_id': ref('crm.email_template_opportunity_mail'),
                          }"
                  groups="sales_team.group_sale_salesman"
                  />
  
          <!--Update of email_template defined in crm_lead_data, to add ref_ir_act_window
              allowing to have a well formed email template (context action considered as set). -->
          <record id="email_template_opportunity_mail" model="mail.template">
              <field name="ref_ir_act_window" ref="crm.action_lead_mass_mail"/>
          </record>
  
          <!--
              'Mark as Lost' in action dropdown
          -->
          <record id="action_mark_as_lost" model="ir.actions.server">
              <field name="name">Mark as lost</field>
              <field name="model_id" ref="model_crm_lead"/>
              <field name="binding_model_id" ref="crm.model_crm_lead"/>
              <field name="state">code</field>
              <field name="code">
  if record:
      action_values = env.ref('crm.crm_lead_lost_action').read()[0]
      action_values.update({'context': env.context})
      action = action_values
              </field>
          </record>
  
          <!--
              'Mark Late Activities as Done' in action dropdown
          -->
          <record id="action_mark_late_activities_done" model="ir.actions.server">
              <field name="name">Mark Late Activities as Done</field>
              <field name="model_id" ref="model_crm_lead"/>
              <field name="binding_model_id" ref="crm.model_crm_lead"/>
              <field name="state">code</field>
              <field name="code">
  for rec in records:
      rec.activity_ids.filtered(lambda a: a.state == 'overdue').action_feedback(feedback='Closed automatically in batch')
              </field>
          </record>
  
          <!--
              'Mark All Activities as Done' in action dropdown
          -->
          <record id="action_mark_activities_done" model="ir.actions.server">
              <field name="name">Mark All Activities as Done</field>
              <field name="model_id" ref="model_crm_lead"/>
              <field name="binding_model_id" ref="crm.model_crm_lead"/>
              <field name="state">code</field>
              <field name="code">
  for rec in records:
      rec.activity_ids.action_feedback(feedback='Closed automatically in batch')
              </field>
          </record>
  
          <!--
              Menu Actions
          -->
          <menuitem
              id="crm_menu_sales"
              name="Sales"
              parent="crm_menu_root"
              sequence="1"/>
  
          <menuitem id="sales_team_menu_team_pipeline"
              name="Team Pipelines"
              parent="crm_menu_sales"
              action="sales_team.crm_team_salesteams_act"
              sequence="4"/>
  
          <menuitem id="res_partner_menu_customer"
              name="Customers"
              parent="crm_menu_sales"
              action="base.action_partner_form"
              sequence="5"/>
  
          <menuitem id="crm_menu_leads"
              name="Leads"
              parent="crm_menu_root"
              groups="crm.group_use_lead"
              sequence="5"/>
  
          <!-- Lead Menu -->
          <record model="ir.actions.act_window" id="crm_lead_all_leads">
              <field name="name">Leads</field>
              <field name="res_model">crm.lead</field>
              <field name="view_mode">tree,kanban,graph,pivot,calendar,form</field>
              <field name="domain">['|', ('type','=','lead'), ('type','=',False)]</field>
              <field name="search_view_id" ref="crm.view_crm_case_leads_filter"/>
              <field name="context">{
                      'default_type':'lead',
                      'search_default_type': 'lead',
                      'search_default_to_process':1,
                  }
              </field>
          </record>
  
          <record id="crm_lead_all_leads_view_tree" model="ir.actions.act_window.view">
              <field name="sequence" eval="1"/>
              <field name="view_mode">tree</field>
              <field name="view_id" ref="crm_case_tree_view_leads"/>
              <field name="act_window_id" ref="crm_lead_all_leads"/>
          </record>
  
          <record id="crm_lead_all_leads_view_kanban" model="ir.actions.act_window.view">
              <field name="sequence" eval="2"/>
              <field name="view_mode">kanban</field>
              <field name="view_id" ref="view_crm_lead_kanban"/>
              <field name="act_window_id" ref="crm_lead_all_leads"/>
          </record>
  
          <record id="crm_lead_all_leads_view_calendar" model="ir.actions.act_window.view">
              <field name="sequence" eval="3"/>
              <field name="view_mode">calendar</field>
              <field name="view_id" ref="crm_case_calendar_view_leads"/>
              <field name="act_window_id" ref="crm_lead_all_leads"/>
          </record>
  
          <record id="crm_lead_all_leads_view_pivot" model="ir.actions.act_window.view">
              <field name="sequence" eval="4"/>
              <field name="view_mode">pivot</field>
              <field name="view_id" ref="crm_lead_view_pivot"/>
              <field name="act_window_id" ref="crm_lead_all_leads"/>
          </record>
  
          <record id="crm_lead_all_leads_view_graph" model="ir.actions.act_window.view">
              <field name="sequence" eval="5"/>
              <field name="view_mode">graph</field>
              <field name="view_id" ref="crm_lead_view_graph"/>
              <field name="act_window_id" ref="crm_lead_all_leads"/>
          </record>
  
          <menuitem
              id="menu_crm_leads"
              name="Leads"
              parent="crm_menu_leads"
              sequence="1"
              action="crm_lead_all_leads"
              groups="crm.group_use_lead"/>
  
          <!-- 'My Pipeline' menu : Server action, act_window_views and act_windows -->
          <record model="ir.actions.act_window" id="crm_lead_opportunities">
              <field name="name">Opportunities</field>
              <field name="res_model">crm.lead</field>
              <field name="view_mode">kanban,tree,graph,pivot,form,calendar</field>
              <field name="domain">[('type','=','opportunity')]</field>
              <field name="context">{
                      'default_type': 'opportunity',
                      'default_user_id': uid
                  }
              </field>
              <field name="search_view_id" ref="crm.view_crm_case_opportunities_filter"/>
          </record>
  
          <record id="crm_lead_opportunities_view_kanban" model="ir.actions.act_window.view">
              <field name="sequence" eval="0"/>
              <field name="view_mode">kanban</field>
              <field name="view_id" ref="crm_case_kanban_view_leads"/>
              <field name="act_window_id" ref="crm_lead_opportunities"/>
          </record>
  
          <record id="crm_lead_opportunities_view_tree" model="ir.actions.act_window.view">
              <field name="sequence" eval="1"/>
              <field name="view_mode">tree</field>
              <field name="view_id" ref="crm.crm_case_tree_view_oppor"/>
              <field name="act_window_id" ref="crm_lead_opportunities"/>
          </record>
  
          <record id="crm_lead_opportunities_view_form" model="ir.actions.act_window.view">
              <field name="sequence" eval="2"/>
              <field name="view_mode">form</field>
              <field name="view_id" ref="crm_case_form_view_oppor"/>
              <field name="act_window_id" ref="crm_lead_opportunities"/>
          </record>
  
          <record id="crm_lead_opportunities_view_graph" model="ir.actions.act_window.view">
              <field name="sequence" eval="3"/>
              <field name="view_mode">graph</field>
              <field name="view_id" ref="crm_lead_view_graph"/>
              <field name="act_window_id" ref="crm_lead_opportunities"/>
          </record>
  
          <record id="crm_lead_opportunities_view_pivot" model="ir.actions.act_window.view">
              <field name="sequence" eval="4"/>
              <field name="view_mode">pivot</field>
              <field name="view_id" ref="crm_lead_view_pivot"/>
              <field name="act_window_id" ref="crm_lead_opportunities"/>
          </record>
  
          <record id="crm_lead_opportunities_view_calendar" model="ir.actions.act_window.view">
              <field name="sequence" eval="5"/>
              <field name="view_mode">calendar</field>
              <field name="view_id" ref="crm_case_calendar_view_leads"/>
              <field name="act_window_id" ref="crm_lead_opportunities"/>
          </record>
  
          <record id="action_your_pipeline" model="ir.actions.server">
              <field name="name">Crm: My Pipeline</field>
              <field name="model_id" ref="crm.model_crm_team"/>
              <field name="state">code</field>
              <field name="code">action = model.action_your_pipeline()</field>
          </record>
  
          <record model="ir.actions.act_window" id="crm_lead_opportunities_tree_view">
              <field name="name">Pipeline</field>
              <field name="res_model">crm.lead</field>
              <field name="view_mode">kanban,tree,graph,pivot,form,calendar</field>
              <field name="domain">[('type','=','opportunity')]</field>
              <field name="context">{
                      'default_type': 'opportunity',
                      'default_user_id': uid,
                      'search_default_assigned_to_me': 1
              }</field>
              <field name="search_view_id" ref="crm.view_crm_case_opportunities_filter"/>
          </record>
  
          <record id="crm_lead_opportunities_tree_view_view_kanban" model="ir.actions.act_window.view">
              <field name="sequence" eval="0"/>
              <field name="view_mode">kanban</field>
              <field name="view_id" ref="crm_case_kanban_view_leads"/>
              <field name="act_window_id" ref="crm_lead_opportunities_tree_view"/>
          </record>
  
          <record id="crm_lead_opportunities_tree_view_view_tree" model="ir.actions.act_window.view">
              <field name="sequence" eval="1"/>
              <field name="view_mode">tree</field>
              <field name="view_id" ref="crm.crm_case_tree_view_oppor"/>
              <field name="act_window_id" ref="crm_lead_opportunities_tree_view"/>
          </record>
  
          <record id="crm_lead_opportunities_tree_view_view_calendar" model="ir.actions.act_window.view">
              <field name="sequence" eval="2"/>
              <field name="view_mode">calendar</field>
              <field name="view_id" ref="crm_case_calendar_view_leads"/>
              <field name="act_window_id" ref="crm_lead_opportunities_tree_view"/>
          </record>
  
          <record id="crm_lead_opportunities_tree_view_view_pivot" model="ir.actions.act_window.view">
              <field name="sequence" eval="3"/>
              <field name="view_mode">pivot</field>
              <field name="view_id" ref="crm_lead_view_pivot"/>
              <field name="act_window_id" ref="crm_lead_opportunities_tree_view"/>
          </record>
  
          <record id="crm_lead_opportunities_tree_view_view_form" model="ir.actions.act_window.view">
              <field name="sequence" eval="4"/>
              <field name="view_mode">form</field>
              <field name="view_id" ref="crm_case_form_view_oppor"/>
              <field name="act_window_id" ref="crm_lead_opportunities_tree_view"/>
          </record>
  
          <record id="crm_lead_opportunities_tree_view_view_graph" model="ir.actions.act_window.view">
              <field name="sequence" eval="5"/>
              <field name="view_mode">graph</field>
              <field name="view_id" ref="crm_lead_view_graph"/>
              <field name="act_window_id" ref="crm_lead_opportunities_tree_view"/>
          </record>
  
          <menuitem
              id="menu_crm_opportunities"
              action="action_your_pipeline"
              name="My Pipeline"
              parent="crm_menu_sales"
              sequence="1"/>
  
          <menuitem
              id="crm.crm_menu_root"
              name="CRM"
              action="action_your_pipeline"/>
  
          <!-- Next Activities Menu -->
          <record id="crm_lead_action_activities" model="ir.actions.act_window">
              <field name="name">Next Activities</field>
              <field name="type">ir.actions.act_window</field>
              <field name="res_model">crm.lead</field>
              <field name="view_mode">tree,form,kanban,calendar,pivot,graph</field>
              <field name="search_view_id" ref="crm.view_crm_case_opportunities_filter"/>
              <field name="view_ids"
                     eval="[(5, 0, 0), (0, 0, {'view_mode': 'tree', 'view_id': ref('crm_lead_view_tree_activity')}),
                            (0, 0, {'view_mode': 'form', 'view_id': ref('crm_case_form_view_oppor')}),
                            (0, 0, {'view_mode': 'kanban'}), (0, 0, {'view_mode': 'calendar'}), (0, 0, {'view_mode': 'pivot'}), (0, 0, {'view_mode': 'graph'})]"/>
              <field name="domain">[('type','=','opportunity'), ('activity_date_deadline', '!=', False)]</field>
              <field name="context">{
                      'default_type': 'opportunity',
                      'default_user_id': uid,
                      'search_default_activities_my': 1,
                  }
              </field>
              <field name="help" type="html">
                  <p class="o_view_nocontent_empty_folder">
                      No next activity
                  </p><p>
                     Here is the list of your next activities. Those are linked to your opportunities.
                     To set a next activity, go on an opportunity and add one. It will then appear in this list.
                  </p>
              </field>
          </record>
  
          <!-- Configuration/Lead & Opporotunities/Lead Tags Menu -->
          <record id="crm_lead_tag_action" model="ir.actions.act_window">
              <field name="name">Tags</field>
              <field name="res_model">crm.lead.tag</field>
              <field name="view_type">form</field>
              <field name="view_id" ref="crm_lead_tag_tree"/>
              <field name="help" type="html">
                <p class="o_view_nocontent_smiling_face">
                  Create a new tag for your opportunities
                </p><p>
                  Create tags that fit your business (product structure, sales type, etc.) to better manage and tack your opportunities.
                </p>
              </field>
          </record>
  
          <menuitem
              id="menu_crm_lead_categ"
              name="Tags"
              action="crm_lead_tag_action"
              parent="menu_crm_config_lead"
              sequence="1"/>
  
          <!-- Configuration/Lead & Opporotunities/Lost Reasons Menu -->
          <record id="crm_lost_reason_action" model="ir.actions.act_window">
              <field name="name">Lost Reasons</field>
              <field name="res_model">crm.lost.reason</field>
              <field name="view_type">form</field>
              <field name="view_mode">tree,form</field>
              <field name="help" type="html">
                <p class="o_view_nocontent_smiling_face">
                  Define a new lost reason
                </p><p>
                  Use lost reasons to explain why an opportunity is lost.
                </p><p>
                  Some examples of lost reasons: "We don't have people/skill", "Price too high"
                </p>
              </field>
          </record>
  
          <menuitem
              id="menu_crm_lost_reason"
              action="crm_lost_reason_action"
              parent="menu_crm_config_lead"
              sequence="6"/>
  
  </odoo>
  