title: how to replace a <t> tag on a kanban template? Odoo 10 enterprice
body: <p>I try to use xpath to replace a  tag. But it did not work, I don't know what is wrong? I just want to remove the condition t-if="record.planned_revenue.raw_value". I tried with this post: <a href="https://odedrabhavesh.blogspot.com/2015/01/how-to-replace-kanban-image-in-odoo.html" rel="nofollow noreferrer">https://odedrabhavesh.blogspot.com/2015/01/how-to-replace-kanban-image-in-odoo.html</a><code>enter code here</code>
  and <a href="https://www.odoo.com/forum/help-1/question/how-to-inherit-from-a-kanban-view-in-odoo9-102568" rel="nofollow noreferrer">https://www.odoo.com/forum/help-1/question/how-to-inherit-from-a-kanban-view-in-odoo9-102568</a>
  But they did not work as my expectation.</p>
  
  <p>This is the original template:</p>
  
  <pre><code>&lt;record id="crm_case_kanban_view_leads" model="ir.ui.view"&gt;
          &lt;field name="name"&gt;crm.lead.kanban.lead&lt;/field&gt;
          &lt;field name="model"&gt;crm.lead&lt;/field&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;kanban default_group_by="stage_id" class="o_kanban_small_column o_opportunity_kanban"
                      on_create="crm.create_opportunity_simplified"&gt;
                  &lt;field name="stage_id"
                         options='{"group_by_tooltip": {"requirements": "Description", "legend_priority": "Use of stars"}}'/&gt;
                  &lt;field name="color"/&gt;
                  &lt;field name="priority"/&gt;
                  &lt;field name="planned_revenue"/&gt;
                  &lt;field name="kanban_state"/&gt;
                  &lt;field name="date_action"/&gt;
                  &lt;field name="user_email"/&gt;
                  &lt;field name="user_id"/&gt;
                  &lt;field name="partner_address_email"/&gt;
                  &lt;field name="message_needaction_counter"/&gt;
                  &lt;field name="tag_ids"/&gt;
                  &lt;field name="partner_id"/&gt;
                  &lt;field name="title_action"/&gt;
                  &lt;field name="active"/&gt;
                  &lt;field name="company_currency"/&gt;
                  &lt;templates&gt;
                      &lt;field name="date_deadline"/&gt;
                      &lt;t t-name="kanban-box"&gt;
                          &lt;div t-attf-class="#{kanban_color(record.color.raw_value)} oe_kanban_global_click"&gt;
                              &lt;div class="o_dropdown_kanban dropdown"&gt;
  
                                  &lt;a class="dropdown-toggle btn" data-toggle="dropdown" href="#"&gt;
                                      &lt;span class="fa fa-bars fa-lg"/&gt;
                                  &lt;/a&gt;
                                  &lt;ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"&gt;
                                      &lt;t t-if="widget.editable"&gt;
                                          &lt;li&gt;
                                              &lt;a type="edit"&gt;Edit&lt;/a&gt;
                                          &lt;/li&gt;
                                      &lt;/t&gt;
                                      &lt;t t-if="widget.deletable"&gt;
                                          &lt;li&gt;
                                              &lt;a type="delete"&gt;Delete&lt;/a&gt;
                                          &lt;/li&gt;
                                      &lt;/t&gt;
                                      &lt;li t-if="! record.active.value"&gt;
                                          &lt;a name="action_set_active" type="object"&gt;Unarchive&lt;/a&gt;
                                      &lt;/li&gt;
                                      &lt;li t-if="record.active.value"&gt;
                                          &lt;a name="action_set_unactive" type="object"&gt;Archive&lt;/a&gt;
                                      &lt;/li&gt;
                                      &lt;li&gt;
                                          &lt;ul class="oe_kanban_colorpicker" data-field="color"/&gt;
                                      &lt;/li&gt;
                                  &lt;/ul&gt;
                              &lt;/div&gt;
                              &lt;div class="oe_kanban_content"&gt;
                                  &lt;div&gt;
                                      &lt;field name="tag_ids"/&gt;
                                  &lt;/div&gt;
                                  &lt;div&gt;
                                      &lt;strong&gt;
                                          &lt;field name="name"/&gt;
                                      &lt;/strong&gt;
                                  &lt;/div&gt;
                                  &lt;div class="text-muted"&gt;
                                      &lt;t t-if="record.planned_revenue.raw_value"&gt;
                                          &lt;field name="planned_revenue" widget="monetary"
                                                 options="{'currency_field': 'company_currency'}"/&gt;
                                          &lt;span t-if="record.partner_id.value"&gt;,&lt;/span&gt;
                                      &lt;/t&gt;
                                      &lt;span t-if="record.partner_id.value"&gt;
                                          &lt;t t-esc="record.partner_id.value"/&gt;
                                      &lt;/span&gt;
                                  &lt;/div&gt;
  
                                  &lt;div class="o_kanban_footer"&gt;
                                      &lt;field name="priority" widget="priority" groups="base.group_user"/&gt;
                                      &lt;t t-if="record.message_needaction_counter.raw_value"&gt;
                                          &lt;span class='oe_kanban_mail_new' title='Unread Messages'&gt;
                                              &lt;i class='fa fa-comments'/&gt;
                                              &lt;t t-raw="record.message_needaction_counter.raw_value"/&gt;
                                          &lt;/span&gt;
                                      &lt;/t&gt;
                                      &lt;div&gt;
                                          &lt;a name="%(crm.crm_activity_log_action)d" type="action"
                                             t-if="record.kanban_state.raw_value!='grey'"&gt;
                                              &lt;span
                                                      t-att-title="record.date_action.value + ': '+ record.title_action.value"
                                                      t-attf-class="oe_kanban_status oe_kanban_status_#{record.kanban_state.raw_value}"/&gt;
                                          &lt;/a&gt;
                                          &lt;a name="%(crm.crm_activity_schedule_action)d" type="action"
                                             t-if="record.kanban_state.raw_value=='grey'"&gt;
                                              &lt;span
                                                      class="oe_kanban_status oe_kanban_status_grey"/&gt;
                                          &lt;/a&gt;
                                          &lt;img t-att-src="kanban_image('res.users', 'image_small', record.user_id.raw_value)"
                                               t-att-title="record.user_id.value" width="24" height="24"
                                               class="oe_kanban_avatar pull-right"/&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;div class="oe_clear"&gt;&lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/t&gt;
                  &lt;/templates&gt;
              &lt;/kanban&gt;
          &lt;/field&gt;
      &lt;/record&gt;
  </code></pre>
  
  <p>I would like to replace this:</p>
  
  <pre><code>&lt;t t-if="record.planned_revenue.raw_value"&gt;
  </code></pre>
  
  <p>by: </p>
  
  <pre><code>&lt;t&gt;
  </code></pre>
  
  <p>And this is my custom:</p>
  
  <pre><code>&lt;record id="crm_case_kanban_view_leads_custom" model="ir.ui.view"&gt;
          &lt;field name="name"&gt;crm.lead.kanban.lead.extends&lt;/field&gt;
          &lt;field name="model"&gt;crm.lead&lt;/field&gt;
          &lt;field name="inherit_id" ref="crm.crm_case_kanban_view_leads"/&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;xpath expr='//kanban/templates/t/div/div/div/t[0]' position="replace"&gt;
                  &lt;t&gt;
                      &lt;field name="planned_revenue" widget="monetary"
                             options="{'currency_field': 'company_currency'}"/&gt;
                      &lt;span t-if="record.partner_id.value"&gt;,&lt;/span&gt;
                  &lt;/t&gt;
              &lt;/xpath&gt;
          &lt;/field&gt;
      &lt;/record&gt;
  </code></pre>
  
  <p>It didn't work, what wrong?</p>