summaryrefslogtreecommitdiff
path: root/addons/account/static/src/xml/bills_tree_upload_views.xml
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2019-06-18 14:43:07 +0000
committerwan <wan@odoo.com>2019-07-19 09:34:59 +0000
commitf722ef0cb079ab2368d4f4075e4c42c0ab9c376a (patch)
treed110cb3bec6b6b62c9a61c6b615b8cb7b74cbd7b /addons/account/static/src/xml/bills_tree_upload_views.xml
parent4b66aa58b9daf83bd72b0e1830d25fcf074320c6 (diff)
[IMP] account, _facturx, l10n[be,it]_edi: remove account.invoice.import.wizard
Since the wizard is not shown anymore (skipped to go right to file selection), we can remove it. Small refactoring had to be done for l10n_it in order to upload files with multiple invoices inside and to detect format closes odoo/odoo#34145 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/account/static/src/xml/bills_tree_upload_views.xml')
-rw-r--r--addons/account/static/src/xml/bills_tree_upload_views.xml11
1 files changed, 5 insertions, 6 deletions
diff --git a/addons/account/static/src/xml/bills_tree_upload_views.xml b/addons/account/static/src/xml/bills_tree_upload_views.xml
index af9385a5780..93502ee9136 100644
--- a/addons/account/static/src/xml/bills_tree_upload_views.xml
+++ b/addons/account/static/src/xml/bills_tree_upload_views.xml
@@ -4,6 +4,7 @@
<t t-name="account.BillsHiddenUploadForm">
<div class="d-none o_vendor_bill_upload">
<t t-call="HiddenInputFile">
+ <t t-set="multi_upload" t-value="true"/>
<t t-set="fileupload_id" t-value="widget.fileUploadID"/>
<t t-set="fileupload_action" t-translation="off">/web/binary/upload_attachment</t>
<input type="hidden" name="model" t-att-value="'account.move'"/>
@@ -19,11 +20,9 @@
r.push(context.engine.tools.call(context, 'ImportView.import_button', dict));
};
</t>
- <t t-if="widget.initialState.context.journal_type === 'purchase'">
- <button type="button" class="btn btn-secondary o_button_upload_bill">
- Upload
- </button>
- </t>
+ <button type="button" class="btn btn-secondary o_button_upload_bill">
+ Upload
+ </button>
</t>
</t>
-</templates> \ No newline at end of file
+</templates>