Drag and Drop a line in a one2many_list widget does not generate onchange event

Bug #601937 reported by Manfred Rockel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Won't Fix
Undecided
Unassigned

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

Revision history for this message
Manfred Rockel (mrockel) wrote :

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)

tfr (Openerp) (tfr)
Changed in openobject-client:
status: New → Won't Fix
Revision history for this message
Manfred Rockel (mrockel) wrote :

onchange event for drag and drop still does not work.
I wonder why that is not fixed

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.