← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 601937] Re: Drag and Drop a line in a one2many_list widget does not generate onchange event

 

** Changed in: openobject-client
       Status: New => Won't Fix

-- 
Drag and Drop a line in a one2many_list widget does not generate onchange event
https://bugs.launchpad.net/bugs/601937
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject GTK Client: Won't Fix

Bug description:

Drag and Drop a line in a one2many_list widget does not generate onchange event when i install the following changes.

without these changes it works fine. 

Revision No 1076
---------------------------------------------------------
=== modified file 'bin/widget/model/record.py'
--- bin/widget/model/record.py	2010-06-09 13:43:22 +0000
+++ bin/widget/model/record.py	2010-06-14 14:18:20 +0000
@@ -241,7 +241,10 @@
         res = self.rpc.read([self.id], fields, c)
         if res:
             value = res[0]
-            self.set(value)
+            if self.parent:
+                self.set(value, signal=False)
+            else:
+                self.set(value)
 
     def expr_eval(self, dom, check_load=True):
         if not isinstance(dom, basestring):