← Back to team overview

openerp-india team mailing list archive

[Bug 1098948] Re: Avoid recursive OnChange event

 

Hello Yann,

After reviewing your onchange methods, I have done following changes to
avoid the OnChange "butterfly effect".

kindly apply the attached patch and notify us regarding the results.

Hope this will solve your issue.

Let me know if you still have issues.

Thanks
Atul Makwana
Serpent Consulting Services

** Patch added: "sale_layout_margin.diff"
   https://bugs.launchpad.net/openobject-server/+bug/1098948/+attachment/3561626/+files/sale_layout_margin.diff

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