Hi,
I have a tree view, where I select a record. When I select it the window changes to a form to can see and edit this record.
Here I can click a button that opens a tree in the current window (can't use a popup because I need to be able to use filters), when I click a record on this tree I execute a function, and I would like to go back to the previous form view.
I'm trying to use this in the function:
return {
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': context['active_model'],
'target': 'current',
'context': context,
'domain': [('quot_id','=',context['active_id'])]
}
But it doesn't work, I get the following error:
Uncaught TypeError: Cannot read property '1' of undefined
http://localhost:8069/web/static/src/js/view_form.js:3285
And besides, I suspect defining the domain, as in here wouldn't allow me to navigate between records, as this one would be the only one in the domain.