odoo/addons/web/static/src
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
..
css [FIX] automatically open options box if the file fails to parse entirely 2011-10-24 16:27:44 +02:00
img [IMP] Bring dashboard styling from trunk-style branch 2011-10-10 17:08:11 +02:00
js [FIX] disgusting hack to skip around race condition 2011-10-25 10:51:12 +02:00
xml [imp] m2o now supports readonly mode 2011-10-24 17:20:56 +02:00