Hi Friends. ,
In 'stock.picking' model, I create two records for 'my.model'.
def _create_check_record(self, vals):
self.ensure_one()
qa_check_rec = self.env['my.model'].create(vals)
return qa_check_rec
def action_check(self):
results = self._parse_vals()
for val in results:
print("val =========", val)
qa_check_rec = self._create_check_record(val)
return {
'res_model': 'my.model',
'res_id': qa_check_rec.id,
'type': 'ir.actions.act_window',
'view_mode': 'form',
'view_id': self.env.ref('my.model.check_form_view').id,
}
After the creation, it returns one record of form view of 'my.model'. How can I let it display two created records' form views.
Thank you very much for shed light on this.