Xavier ALT (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-client-web/6.0-opw-577111-xal into 
lp:openobject-client-web.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-577111-xal/+merge/117399

Hi,

This fix a problem happening when listview and/or one2many is in editable mode 
and list already contains some rows.
Line in edit mode and other line don't have same definition, creating problem 
with onchange().

Steps:
1. Go to Human Resource / Time Tracking / My Timesheet
2. (timesheets one2many should be empty for testing)
   - add line (account: support, desc: test1, quantity: 1:00, invoicing: gratis)
   - add line (account: support, desc: test2, quantity: (leave empty), 
invoicing: gratis)
   - add line (account: support, desc: test2, quantity: 1:00 <---- BUG happen 
here

Current: we end in infinite on-change() loop with web client error NameError: 
'unit_amount'...
Expect: that should just work.

Regards,
Xavier
-- 
https://code.launchpad.net/~openerp-dev/openobject-client-web/6.0-opw-577111-xal/+merge/117399
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-client-web/6.0-opw-577111-xal.
=== modified file 'addons/openerp/widgets/listgrid.py'
--- addons/openerp/widgets/listgrid.py	2012-07-30 08:02:40 +0000
+++ addons/openerp/widgets/listgrid.py	2012-07-31 09:43:28 +0000
@@ -500,7 +500,7 @@
 
                     headers += [(name, fields[name])]
 
-        dataset = ListViewDataSet(data, list_fields, self.colors)
+        dataset = ListViewDataSet(data, copy.deepcopy(list_fields), self.colors)
 
         return headers, hiddens, dataset, field_total, buttons
 

_______________________________________________
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

Reply via email to