[REF] *: move tags under the title of kanban records

* crm, fleet, hr_recruitment, mass_mailing, website_event_track

Adapt kanban layouts so that tags are under the title to fit new design
requirements.
This commit is contained in:
stefanorigano
2017-08-28 12:53:17 +02:00
committed by qsm-odoo
parent a8ec7f1d56
commit 66ffabf706
6 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -198,10 +198,10 @@
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_content oe_kanban_global_click">
<div>
<field name="tag_ids"/>
<strong><span><field name="name"/></span></strong>
</div>
<div>
<strong><span><field name="name"/></span></strong>
<field name="tag_ids"/>
</div>
<div>
<span><field name="contact_name"/></span>
@@ -317,10 +317,10 @@
</div>
<div class="oe_kanban_content">
<div>
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
<strong><field name="name"/></strong>
</div>
<div>
<strong><field name="name"/></strong>
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
</div>
<div class="text-muted">
<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>
+3 -3
View File
@@ -181,9 +181,6 @@
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_global_click">
<div class="o_kanban_tags_section">
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
</div>
<div class="o_kanban_image">
<img t-att-src="kanban_image('fleet.vehicle', 'image_small', record.id.raw_value)"/>
</div>
@@ -191,6 +188,9 @@
<strong>
<field name="license_plate"/> : <field name="model_id"/>
</strong>
<div class="o_kanban_tags_section">
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
</div>
<ul>
<li>
<t t-if="record.driver_id.raw_value"><field name="driver_id"/></t>
@@ -282,12 +282,12 @@
</ul>
</div>
<div class="oe_kanban_content" tooltip="kanban-tooltip">
<field name="categ_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
<b t-if="record.partner_name.raw_value">
<field name="partner_name"/>
</b><t t-else="1">
<i><field name="name"/></i><br/>
</t><br/>
<field name="categ_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
<div invisible="context.get('search_default_job_id', False)">
<field name="job_id"/>
</div>
@@ -817,7 +817,6 @@
</ul>
</div>
<div class="oe_kanban_content">
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
<div>
<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"/>
@@ -827,6 +826,7 @@
<h4 class="oe_margin_top_8"><t t-raw="record.mass_mailing_ids.raw_value.length"/> Mailings</h4>
</a>
</div>
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
<div class="oe_clear"></div>
<div>
<div style="display: inline-block">
@@ -29,11 +29,11 @@
</ul>
</div>
<div class="oe_kanban_content">
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
<h4><field name="name"/></h4>
<div>
<t t-if="duration"><field name="duration" widget="float_time"/> hours</t>
</div>
<field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/>
<div class="oe_kanban_bottom_left">
<field name="priority" widget="priority"/>
</div>
+1 -1
View File
@@ -441,7 +441,6 @@
<templates>
<t t-name="kanban-box">
<div class="oe_kanban_global_click o_res_partner_kanban">
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
<div class="o_kanban_image">
<t t-if="record.image_small.raw_value">
<img t-att-src="kanban_image('res.partner', 'image_small', record.id.raw_value)"/>
@@ -465,6 +464,7 @@
</div>
<div class="oe_kanban_details">
<strong class="oe_partner_heading"><field name="display_name"/></strong>
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
<ul>
<li t-if="record.parent_id.raw_value and !record.function.raw_value"><field name="parent_id"/></li>
<li t-if="!record.parent_id.raw_value and record.function.raw_value"><field name="function"/></li>