From d6bd6d5eec31e1985ff5c7f9eff2d76a26fd662b Mon Sep 17 00:00:00 2001 From: "Maximilien (malb)" Date: Mon, 6 Nov 2023 15:01:41 +0100 Subject: [PATCH] [IMP] hr_expense: attachment expense sheet The goal of this pr is to remove the name of the file on the expense report. closes odoo/odoo#141226 Task: 3473105 Signed-off-by: Quentin De Paoli --- addons/hr_expense/static/src/components/attachment_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_expense/static/src/components/attachment_view.js b/addons/hr_expense/static/src/components/attachment_view.js index cac1c86d888..91963766756 100644 --- a/addons/hr_expense/static/src/components/attachment_view.js +++ b/addons/hr_expense/static/src/components/attachment_view.js @@ -6,7 +6,7 @@ import { AttachmentView } from "@mail/core/common/attachment_view"; patch(AttachmentView.prototype, { get displayName() { if (this.state.thread.model === 'hr.expense.sheet') { - return (this.state.thread.mainAttachment.res_name || this.state.thread.name) + ' - ' + this.state.thread.mainAttachment.filename; + return (this.state.thread.mainAttachment.res_name || this.state.thread.name); } return super.displayName; }