on_change is not triggered when the value is changed by the server

Asked by elver

When a function on the server is called via an on_change event and the called function changes the values of some fields, then the on_change events of those fields are not triggered even though the values of those fields are changed.

This is roughly what I'm trying to achieve:

http://www.openobject.com/forum/topic14612.html

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo GTK Client (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) said :
#1

Hello Elver,

You may choose to use Warning module.
If not, you may opt for this little change in your own onchange method.

warning = {
                    'title': 'Pop UP',
                    'message': ' Your Message',
            }
return {'value': Your dictionary, 'warning':warning}

Thanks.

Can you help with this problem?

Provide an answer of your own, or ask elver for more information if necessary.

To post a message you must log in.