Odoo Reload on button click

deepika bhojani picture deepika bhojani · Jun 12, 2015 · Viewed 8.3k times · Source

I want to reload a page in odoo on a click of a button. I tried this:

  • object_name.refresh()
  • return {'tag': 'reload'}

but it's not working.

How can I get it?

Answer

Rinaldi picture Rinaldi · Nov 20, 2017

add 'type': 'ir.actions.client' in your return like:

return {
      'type': 'ir.actions.client',
      'tag': 'reload',
}