← Back to team overview

openerp-india team mailing list archive

[Bug 1098948] [NEW] Avoid recursive OnChange event

 

Public bug reported:

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.

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
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:
  New

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


Follow ups

References