Skip to Content
Menú
This question has been flagged
1846 Vistes
Hello,
i have a button that opens a tree view.
def action_view_altri_dati_gestionali(self):
return {
'name': self.product_id.name,
'res_model': 'altri.dati.gestionali',
'type': 'ir.actions.act_window',
'context': {'invoice_line_id': self.id},
'domain': [('invoice_line_id', '=', self.id)],
'view_mode': 'tree',
# 'target': 'new'
}

return action


If the view is opened in a modal window (with 'target': 'new') then the "Actions" drop down menu is NOT shown when selecting records.
If instead the view is opened in the main window (without 'target': 'new') then the "Actions" drop-down menu is shown correctly.

do you have a suggestion?

Thanks





Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de nov. 21
2106
1
de març 23
1696
2
d’ag. 22
2563
1
de març 21
5523
1
de febr. 21
3350