[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
This commit is contained in:
parent
e862ff7033
commit
b8124f5cec
|
@ -253,14 +253,6 @@
|
||||||
</p>
|
</p>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
<menuitem name="Documents" id="menu_document_doc" parent="knowledge.menu_document" sequence="0"/>
|
|
||||||
<menuitem
|
|
||||||
name="Documents"
|
|
||||||
action="action_document_file_form"
|
|
||||||
id="menu_document_files"
|
|
||||||
parent="menu_document_doc"
|
|
||||||
sequence="0"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<record model="ir.actions.act_window" id="action_document_file_directory_form">
|
<record model="ir.actions.act_window" id="action_document_file_directory_form">
|
||||||
<field name="type">ir.actions.act_window</field>
|
<field name="type">ir.actions.act_window</field>
|
||||||
|
|
|
@ -16,8 +16,9 @@
|
||||||
<record model="ir.actions.act_window" id="hr_applicant_resumes">
|
<record model="ir.actions.act_window" id="hr_applicant_resumes">
|
||||||
<field name="name">Resumes and Letters</field>
|
<field name="name">Resumes and Letters</field>
|
||||||
<field name="res_model">ir.attachment</field>
|
<field name="res_model">ir.attachment</field>
|
||||||
<field name="view_mode">tree,form</field>
|
<field name="view_type">form</field>
|
||||||
<field name="view_id" ref="document.view_document_file_tree"/>
|
<field name="view_mode">kanban,tree,form</field>
|
||||||
|
<field name="view_id" ref="mail.view_document_file_kanban"/>
|
||||||
<field name="domain">[('res_model','=','hr.applicant')]</field>
|
<field name="domain">[('res_model','=','hr.applicant')]</field>
|
||||||
<field name="help" type="html">
|
<field name="help" type="html">
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -100,13 +100,21 @@
|
||||||
<templates>
|
<templates>
|
||||||
<t t-name="kanban-box">
|
<t t-name="kanban-box">
|
||||||
<div class="oe_kanban_global_click">
|
<div class="oe_kanban_global_click">
|
||||||
<div t-attf-class="oe_attachment" t-if="record.file_type_icon.value != 'webimage'">
|
<div class="oe_kanban_vignette">
|
||||||
<img t-att-src="'/mail/static/src/img/mimetypes/' + record.file_type_icon.value + '.png'"></img>
|
<div class="oe_attachment">
|
||||||
<div class='oe_name'><t t-raw='record.name.value' />bb</div>
|
<div t-if="record.file_type_icon.value != 'webimage'">
|
||||||
</div>
|
<img t-att-src="'/mail/static/src/img/mimetypes/' + record.file_type_icon.value + '.png'"></img>
|
||||||
<div t-attf-class="oe_attachment oe_preview" t-if="record.file_type_icon.value == 'webimage'">
|
</div>
|
||||||
<img t-att-src="kanban_image('ir.attachment', 'datas', record.id.value)" class="oe_kanban_image"/>
|
<div t-if="record.file_type_icon.value == 'webimage' and !record.url.value">
|
||||||
<div class='oe_name'><t t-raw='record.name.value' />aa</div>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
|
|
Loading…
Reference in New Issue