diff options
| author | Gaurav Panchal <gan@openerp.com> | 2014-06-23 11:48:05 +0530 |
|---|---|---|
| committer | Gaurav Panchal <gan@openerp.com> | 2014-06-23 11:48:05 +0530 |
| commit | b8124f5ceca5f0308e53d4f33e73c7a778de2302 (patch) | |
| tree | 85df250d32575cb1ac6e774bbff7075ecacbd6c2 /addons/mail/mail_message_view.xml | |
| parent | e862ff7033dd001a84d7e0a192d0da7b11384bd9 (diff) | |
[IMP]document: Remove document menu and submenu from knowledge, hr_applicnt_document: add kanban view in hr resume and letter, mail: change the kanban view of attachment
Diffstat (limited to 'addons/mail/mail_message_view.xml')
| -rw-r--r-- | addons/mail/mail_message_view.xml | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/addons/mail/mail_message_view.xml b/addons/mail/mail_message_view.xml index dde087de597..0ab7b269cca 100644 --- a/addons/mail/mail_message_view.xml +++ b/addons/mail/mail_message_view.xml @@ -100,13 +100,21 @@ <templates> <t t-name="kanban-box"> <div class="oe_kanban_global_click"> - <div t-attf-class="oe_attachment" t-if="record.file_type_icon.value != 'webimage'"> - <img t-att-src="'/mail/static/src/img/mimetypes/' + record.file_type_icon.value + '.png'"></img> - <div class='oe_name'><t t-raw='record.name.value' />bb</div> - </div> - <div t-attf-class="oe_attachment oe_preview" t-if="record.file_type_icon.value == 'webimage'"> - <img t-att-src="kanban_image('ir.attachment', 'datas', record.id.value)" class="oe_kanban_image"/> - <div class='oe_name'><t t-raw='record.name.value' />aa</div> + <div class="oe_kanban_vignette"> + <div class="oe_attachment"> + <div t-if="record.file_type_icon.value != 'webimage'"> + <img t-att-src="'/mail/static/src/img/mimetypes/' + record.file_type_icon.value + '.png'"></img> + </div> + <div t-if="record.file_type_icon.value == 'webimage' and !record.url.value"> + <img t-att-src="kanban_image('ir.attachment', 'datas', record.id.value)"/> + </div> + <div t-if="record.file_type_icon.value and record.url.value"> + <img t-att-src="record.url.value"/> + </div> + <div class="oe_name"> + <field name="name"/> + </div> + </div> </div> </div> </t> |
