← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 785062] Re: one2many list on_change fired before remove

 

Hi,

The problem appears when you have a one2many field (with one2many list widget) and you set up the on_change event.
Then try to remove an item from list and see that the event is fired and the field has the item that was removed in the list.

Best regards,
Marian

-----Original Message-----
From: bounces@xxxxxxxxxxxxx [mailto:bounces@xxxxxxxxxxxxx] On Behalf Of Ravi Gadhia (OpenERP)
Sent: Thursday, July 28, 2011 3:00 PM
To: marian.negru@xxxxxxxxxxxxx
Subject: [Bug 785062] Re: one2many list on_change fired before remove

Hello Marian Negru,
           Would you please provide us your test case where you face problem.

Thanks

--
You received this bug notification because you are subscribed to the bug report.
https://bugs.launchpad.net/bugs/785062

Title:
  one2many list on_change fired before remove

Status in OpenERP GTK Client:
  Confirmed

Bug description:
  The problem is that the event is signaled before removing the item and
  the on_change method receives the deleted item in the list. The code
  is:

  model.signal('record-changed', model.parent)
  self.screen.remove()

  and it should be:

  self.screen.remove()
  model.signal('record-changed', model.parent)

  in method _sig_remove from widget\view\form_gtk\one2many_list.py file

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/785062/+subscriptions

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/785062

Title:
  one2many list on_change fired before remove

Status in OpenERP GTK Client:
  Confirmed

Bug description:
  The problem is that the event is signaled before removing the item and
  the on_change method receives the deleted item in the list. The code
  is:

  model.signal('record-changed', model.parent)
  self.screen.remove()

  and it should be:

  self.screen.remove()
  model.signal('record-changed', model.parent)

  in method _sig_remove from widget\view\form_gtk\one2many_list.py file

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/785062/+subscriptions


References