diff options
| author | Suraj Shukla <suh@odoo.com> | 2018-07-12 05:46:54 +0000 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2019-04-18 10:26:51 +0000 |
| commit | 3f6aadaac4c46e6af89d4a53199996dda34cc750 (patch) | |
| tree | 49a62288dc4d73b94954acc7116d43c692784233 /addons/project/static/src/xml | |
| parent | 3c32f9b90309158554b91ea112d798c87c73d201 (diff) | |
[MOV] web, project: make cover image generic in kanban
Previously, we could only set cover image on the kanban view of project
task. This commit makes the feature generic so now cover image can be
added to any kanban view.
Technical notes:
- field used to display the cover image has to be set as 'data-field'
attribute on the kanban dropdown's menu related to cover image
- developer will have to take care while designing kanban views with
cover image ability in such a way that it does not break the design
Task 32108
closes odoo/odoo#31731
Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
Diffstat (limited to 'addons/project/static/src/xml')
| -rw-r--r-- | addons/project/static/src/xml/project.xml | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/addons/project/static/src/xml/project.xml b/addons/project/static/src/xml/project.xml deleted file mode 100644 index 4be07b70fcd..00000000000 --- a/addons/project/static/src/xml/project.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<templates id="template" xml:space="preserve"> - <t t-name="project.SetCoverModal"> - <div t-if="attachment_ids.length > 0" class="ml32 mr0 o_kanban_task_cover_container"> - <t t-foreach="attachment_ids" t-as="attachment"> - <div t-attf-class="o_kanban_task_cover_image#{cover_id == attachment['id'] ? ' o_selected' : ''}"> - <img t-attf-src="/web/image/#{attachment['id']}?unique=1" t-att-data-id="attachment['id']" t-att-data-name="attachment['name']" alt="Attachment"/> - </div> - </t> - </div> - <div t-if="attachment_ids.length == 0">There is no available image to be set as cover.</div> - <span class="d-none"> - <t t-call="HiddenInputFile"> - <t t-set="fileupload_id" t-value="widget.imageUploadID" /> - <t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t> - <input type="hidden" name="model" t-att-value="widget.modelName" /> - <input type="hidden" name="id" t-att-value="widget.id" /> - </t> - </span> - </t> -</templates> |
