[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 <qdp@odoo.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user