pengyuthon

This commit is contained in:
李鹏宇
2024-11-08 21:16:58 +08:00
parent cef75aaa31
commit 631f92d513
2 changed files with 10 additions and 8 deletions
@@ -92,10 +92,10 @@ export const DocumentsSpreadsheetControllerMixin = () => ({
} else {
this.dialogService.add(SpreadsheetCloneXlsxDialog, {
title: _t("Format issue"),
cancel: () => {},
// cancel: () => {},
cancelLabel: _t("Discard"),
documentId: mainDocument.resId,
confirmLabel: _t("Open with Odoo Spreadsheet"),
// confirmLabel: _t("Open with Odoo Spreadsheet"),
});
}
} else {
@@ -1,12 +1,14 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="documents_spreadsheet.SpreadsheetCloneXlsxDialog" t-inherit="web.ConfirmationDialog" t-inherit-mode="primary">
<xpath expr="//p[@t-out='props.body']" position="replace">
<p>Spreadsheet files cannot be previewed or edited in Odoo. Opening your file with Odoo Spreadsheet will allow you to do so.</p>
<label for="willArchive" class="o_form_label me-4">Send source file to trash</label>
<input class="form-check-input" type="checkbox" id="willArchive" name="willArchive" t-model="this.archiveDocumentState.willArchive"/>
</xpath>
<t t-name="documents_spreadsheet.SpreadsheetCloneXlsxDialog">
<t t-name="web.ConfirmationDialog">
<Dialog size="'md'" title="props.title" modalRef="modalRef">
<p>文档格式不支持,请使用onlyoffice预览2222</p>
<t t-set-slot="footer">
</t>
</Dialog>
</t>
</t>
</templates>