You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

12 lines
421 B

/** @odoo-module **/
import { Many2ManyBinaryField } from "@web/views/fields/many2many_binary/many2many_binary_field"
import { patch } from "@web/core/utils/patch";
/**
This module patches the onClickURL method of the Many2ManyBinaryField class
to open URLs in a new tab when clicked.
**/
patch(Many2ManyBinaryField.prototype, {
onClickURL(id) {
window.open(`/web/content/${id}?download=true`)
}
})