Hello,
I implemented a function in my model to show all attachments. While the function yields the correct result, I aim to open the output in a new tab. How can I achieve this?
def test_button(self):
return {
'type': 'ir.actions.act_window',
'res_model': 'ir.attachment',
'view_mode': 'kanban',
'target': '_blank',
'domain': [('res_model', '=', self._name), ('res_id', '=', self.id)],
}
XML :