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.

0

How to refresh view whenever a discard button is clicked?

By
Hammad hussain qureshi
on 11/12/15, 8:58 AM 339 views

How to refresh view whenever a discard button is clicked? I want to clear all page context and references whenever a top discard is clicked.

Actually what I am facing is that I have a one2many view (order_lines of sale.order) which I am populating by overriding the default_get of sale,order. This one2many view is populating as I want but when the form view is closed and reopen, then default data is populating twice. It goes on increment whenever I repeat this process. I am assuming that this is causing due to view context that already contains previous data in it. And default_get keep adding further data to it.

 

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

1 follower(s)

Stats

Asked: 11/12/15, 8:58 AM
Seen: 339 times
Last updated: 11/12/15, 8:58 AM