openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23816
[Bug 1098948] Re: Avoid recursive OnChange event
Yann,
I am sure you can handle this within your code.
By design, if value is changed (disregard to manual way or from the
onchange of another field); onchange trigger has to fire.
What you can do here is call another onchange with special context and
make specific adjustments.
You can also manage this by value based call to onchanges.
If you wish, you can share your example.
Thanks.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1098948
Title:
Avoid recursive OnChange event
Status in OpenERP Server:
Confirmed
Bug description:
In a custom module that I'm trying to develop, there are three fields
with a OnChange event that affects each of the other fields.
The main issue is that the OnChange event is propagated threw all
fields again and again until a balance is found (the value does not
change, so the OnChange event is not triggered).
Is there a way to avoid the OnChange "butterfly effect" ?
I tried with a custom tag variable passed in the context dictionnary,
but apparently this custom context is lost when exiting the OnChange
event.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1098948/+subscriptions
References