Odoo Help


Refresh a page when delete is performed?

Uppili Arivukkannu
on 6/20/16, 7:31 AM 1,249 views

I want to refresh the view page when delete is performed.

I tried unlink() method I see some codes to reload the page.

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

But when I use unlink() method


def unlink(self):

    return models.Model.unlink(self)

It has to return the unlink() to delete the record so I can not call the return for reload.

I tried this


def unlink(self):


        'type': 'ir.actions.client',

        'type': 'reload',}

    return models.Model.unlink(self),x

But its not working.

Any other suggestions to reload/refresh the view page of odoo when delete is performed.


Juan Vicente Pascual
On 6/22/16, 9:32 AM


def unlink(self):
res = super(YOURCLASS, self).unlink()
return { 'type': 'ir.actions.client', 'tag': 'reload', }

Kind regards.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/20/16, 7:31 AM
Seen: 1249 times
Last updated: 6/22/16, 9:32 AM