summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/data_export.js
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2016-03-23 17:12:59 +0100
committerRaphael Collet <rco@openerp.com>2016-04-25 13:37:11 +0200
commit8bc7d8565c3e4f954c479e3b51b863e4c03dc582 (patch)
tree120837c24da8c467c8193d2ff030e0e1aae2b429 /addons/web/static/src/js/widgets/data_export.js
parent6037f3a56d3992cf0a6ff5ea1cb374dcbac03ea0 (diff)
[IMP] models: attach prefetching data to recordsets instead of environments
The prefetching now has a more intuitive and controllable model: every recordset is linked to a "prefetch object" that tells which record ids to prefetch for any model. The prefetch object of a given recordset is shared with the records obtained by iteration and relational field access. All other operations instantiate recordsets with a fresh prefetch object. records = model.browse(ids) assert records._prefetch is not model._prefetch for record in records: assert record._prefetch is records._prefetch assert record.relation._prefetch is record._prefetch
Diffstat (limited to 'addons/web/static/src/js/widgets/data_export.js')
0 files changed, 0 insertions, 0 deletions