diff options
| author | Ankita Raval <anr@odoo.com> | 2019-12-10 13:15:08 +0000 |
|---|---|---|
| committer | svs-odoo <svs@odoo.com> | 2020-03-04 10:12:46 +0000 |
| commit | 65513ef3f92d82806d03bd5fe55c7f9af4f1484d (patch) | |
| tree | bb8b71b6d1c19713abd5e81729459672ae0f2131 /addons/mrp/static/src/xml | |
| parent | a56a4f8aeeebf946745b09b0b1a649293b806546 (diff) | |
[IMP] mrp: mrp_document
Purpose:
Modernizes and facilitates files upload in manufacturing app.
In this Commit:
- Show the image in Kanban.
- Allow to access a preview of the file when clicking on it in the
Kanban view.
- Add a 'Edit', 'Delete' and 'Download' in kanban card dropdown menu.
- Add Upload button in control panel to upload document which will
create new record of `mrp.document` and also add a testcase for it.
task-1960733
closes odoo/odoo#42168
Related: odoo/enterprise#8977
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/mrp/static/src/xml')
| -rw-r--r-- | addons/mrp/static/src/xml/mrp_document_template.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/mrp/static/src/xml/mrp_document_template.xml b/addons/mrp/static/src/xml/mrp_document_template.xml new file mode 100644 index 00000000000..23ea08d860e --- /dev/null +++ b/addons/mrp/static/src/xml/mrp_document_template.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<templates xml:space="preserve"> + +<div t-name="MrpDocumentsKanbanView.buttons"> + <button type="button" t-attf-class="btn btn-primary o_mrp_documents_kanban_upload"> + Upload + </button> +</div> +</templates> + |
