[IMP] crm_lead, hr_recruitment: improved kanban views.

bzr revid: tde@openerp.com-20120621161111-kjafid5ajelda20d
This commit is contained in:
Thibault Delavallée
2012-06-21 18:11:11 +02:00
parent f452048296
commit d2f72d8143
2 changed files with 10 additions and 4 deletions
+3 -1
View File
@@ -240,6 +240,8 @@
<field name="user_email"/>
<field name="user_id"/>
<field name="partner_address_email"/>
<field name="message_summary" invisible="1"/>
<field name="needaction_pending" invisible="1"/>
<templates>
<t t-name="lead_details">
<ul class="oe_kanban_tooltip">
@@ -293,7 +295,7 @@
<img t-att-src="kanban_image('res.users', 'avatar', record.user_id.raw_value[0])" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar"/>
</div>
<div class="oe_kanban_footer_left">
<field name="message_summary" invisible="1"/>
<t t-if="record.needaction_pending.raw_value"><span class="oe_kanban_mail_new">New</span></t>
<t t-raw="record.message_summary.raw_value"/>
</div>
</div>
@@ -269,7 +269,9 @@
<field name="partner_name"/>
<field name="type_id"/>
<field name="job_id"/>
<field name="title_action"/>
<field name="title_action"/>
<field name="message_summary" invisible="1"/>
<field name="needaction_pending" invisible="1"/>
<templates>
<t t-name="kanban-box">
<t t-if="record.priority.raw_value == '1'" t-set="border">oe_kanban_color_green</t>
@@ -320,9 +322,11 @@
</t>
</div>
<div align="left" width="22" style="padding-top:5px;white-space: nowrap;" >
<div align="right">
<div align="right">
<img t-att-src="kanban_image('res.users', 'avatar', record.user_id.raw_value[0])" t-att-title="record.user_id.value" width="24" height="24" class="oe_kanban_avatar"/>
</div>
</div>
<t t-if="record.needaction_pending.raw_value"><span class="oe_kanban_mail_new">New</span></t>
<t t-raw="record.message_summary.raw_value"/>
</div>
</div>
</div>