odoo/addons/web
Xavier Morel b6a0874f4c [FIX] disgusting hack to skip around race condition
When clicking on an action button, form view first saves then executes
the action. In doing so, it causes the o2m field to call
ListView#reload_content twice without waiting for the reloading to
end, generating a race condition in ListView.List#render_dataset.

As a result, the read_slice callback fills the list twice (once for
each #reload_content call), resulting in everything being duplicated.

Clear the content of the records collection before adding stuff.

note: collections should dedup on ids.

lp bug: https://launchpad.net/bugs/877965 fixed

bzr revid: xmo@openerp.com-20111025085112-q38q8m0k2mopwadg
2011-10-25 10:51:12 +02:00
..
common [IMP] add debug keys to nonliteral domains and contexts, simplify keyscheck for validity (and make it look like python code) 2011-10-21 09:22:40 +02:00
controllers [IMP] import: only show second step once file has been uploaded 2011-10-24 16:06:58 +02:00
po Launchpad automatic translations update. 2011-10-24 05:18:26 +00:00
static [FIX] disgusting hack to skip around race condition 2011-10-25 10:51:12 +02:00
test rename base into web part1 2011-09-05 13:03:09 +02:00
__init__.py [IMP] cleanup of web.common 2011-10-05 19:58:26 +02:00
__openerp__.py [ADD] Added jQuery.MD5 2011-10-25 10:36:48 +02:00