Odoo Help

Welcome!

This community 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.

2

How can I reload a specific field after a wizard?

By
Juan Formoso
on 1/16/15, 11:54 AM 891 views

I have a one2many field. Each row has a button I've created. The button opens a wizard and from it you can delete the record. If you choose this option, the wizard is closed and the record removed, but the view isn't updated, so the record is still there (despite it was succesfully removed from the database).

I've tried several ways to update the field. One of them was to return this from the wizard button (after removing the record):

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

It works, except for the whole page is reloaded, so if you've edited several fields and then edit the one2many field removing one of its records, the other fields are going to be lost.

Another ways I've tried were using options like 'always_reload': 1 or 'reload_on_button': 1 in my one2many field XML definition, but neither of them worked.

How can I achieve this?

0
Pablo Fuentes
On 6/16/15, 3:51 AM

Have a look to this post:

https://www.odoo.com/es_ES/forum/help-1/question/how-to-refresh-the-original-view-after-wizard-actions-10268

Cheers!

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 1/16/15, 11:54 AM
Seen: 891 times
Last updated: 6/16/15, 3:51 AM