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: [email protected] [mailto:[email protected]] On Behalf Of Ravi Gadhia (OpenERP) Sent: Thursday, July 28, 2011 3:00 PM To: [email protected] 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 OpenERP sa GTK client R&D, which is a bug assignee. 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 _______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp

