I'm creating buttons in a m2o table to open the full detail form for a record in the current window rather than a popup (with attachments and such).
I would like to have the ability to scroll through all records of the domain with the usual "<" and ">" buttons, but it only displays 1/1 if I go straight to the form.
If I switch the "views" to have 'tree' and then click on one of them it works, it will show (e.g 1/7 and allow < > to go through found records). Is there a way to have it work that way going straight to the form view?
@api.multi
def open_task(self):
return {
'type': 'ir.actions.act_window',
'name': 'Open Task',
'views': [[False, 'form'], [False, 'tree']],
'res_model': 'project.task',
'res_id': self.id,
'target': 'current',
'domain': [('site_id','=',self.site_id.id)],
}
Hello,
I also have the same problem. I want to go directly to a form view and navigate with the < and > arrows. Did you solve the problem? I am desperately looking ... Thank you. Here is the link of my post -> https://www.odoo.com/fr_FR/forum/aide-1/odoo-return-record-lists-on-form-view-216914