[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:
Thanh Dodeur
2020-10-20 11:55:51 +00:00
parent 6bf6688d73
commit bd26e75f34
@@ -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 });
}
/**