summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/relational_fields.js
diff options
context:
space:
mode:
authorOlivier Dony <odo@odoo.com>2018-07-03 16:34:45 +0200
committerOlivier Dony <odo@odoo.com>2018-07-04 10:11:32 +0200
commita5edf6e0f3f08f8f10043f77c9a4ee653af64b18 (patch)
treeb11284092d0fa1e088eb199f96d956751291d5bd /addons/web/static/src/js/fields/relational_fields.js
parentc1de5b84192953e49db04a99106b1c187d622ade (diff)
[IMP] mass_mailing; speed up kanban view
The kanban view displays mailing statistics for all mailings that are sending or done. To compute these statistics, it uses the `total` as the expected number of emails to send. This `total` used to be computed as the number of records matching the mailing filter. This is both slow (filters are seldom written in an optimized way), and incorrect because the recipients were frozen when the email was sent. The number of matching records may have changed since then. To fix both problems, introduce a new `expected` computed field that simply returns the number of emails that were put in queue at the time of sending, and thus represent the real number of expected emails. This field is computed along with the rest of the statistics.
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions