Can someone please check and confirm my codechanges.

    def _reload(self, fields):
        if not self.id:
            return
        c = rpc.session.context.copy()
        c.update(self.context_get())
        c['bin_size'] = True
        res = self.rpc.read([self.id], fields, c)
        if res:
            value = res[0]
-            if self.parent:
+            if self.parent and not self.modified:
                self.set(value, signal=False)
            else:
                self.set(value)

-- 
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 OpenERP OpenObject.

Status in OpenObject GTK Client: New

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



_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to