[IMP] mail: replaces window.location by services.navigate
part of task-2171884 closes odoo/odoo#59947 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
This commit is contained in:
@@ -105,7 +105,7 @@ class Attachment extends Component {
|
||||
*/
|
||||
_onClickDownload(ev) {
|
||||
ev.stopPropagation();
|
||||
window.location = `/web/content/ir.attachment/${this.attachment.id}/datas?download=true`;
|
||||
this.env.services.navigate(`/web/content/ir.attachment/${this.attachment.id}/datas`, { download: true });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user