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

Reload form

By
Biztech
on 8/26/14, 5:39 AM 643 views

Hi,

I would like to refresh my current form. Based on clicking button, a boolean fields is changed in True/False. When this boolean fields is True, I want to enable another button. This is working as expected bt the issue is I have to reload the record. I want to do it by coding instead of manuall reloading. Can anyone help ?

0
Marek Mosiewicz
On 8/26/14, 6:15 AM

You can hide button with property attrs in view. E.g. 

<button name="myInvisibleButton" attrs="{'invisible':[('myField','=','False')]}>

Above will hide button if myField is false.

 

Marek Mosiewicz

http://consultantodoo.com

I have already applied this attrs in my case. But I have to reload the page everytime.

Biztech
on 8/26/14, 6:39 AM

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: 8/26/14, 5:39 AM
Seen: 643 times
Last updated: 3/16/15, 8:10 AM