Hello. I'm in a function of a wizard, I get some invoices and I want to show them as domain on the tree view "account.invoice_tree" .
I think i need to return someting like this
window = {
'name': 'CA par adhérent',
'view_mode': 'form',
'view_type': 'tree',
# 'res_id': invoices.ids,
# 'res_id': self.id,
'res_model': 'account.invoice',
'view_id': self.env.ref('account.invoice_tree').id, #self.env.ref('account.invoice_tree').id,
'type': 'ir.actions.act_window',
'domain': [('invoice_id', 'in', invoices.ids)],
# 'target': 'self',
}
I've tried many variations but at best it shows a form view to create a new invoice
Thanks for your help
Hope this will helps: https://www.scoop.it/t/learn-openerp