← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 785062] [NEW] one2many list on_change fired before remove

 

Public bug reported:

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

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

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

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


Follow ups

References