[7.0] large number of mail.message prevents displaying a record
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team |
Bug Description
Hello,
On a test instance running on my customer, the scheduler runs through a cron about 6x each day.
Each of these runs generates 3 mail.messages on procurements which are in exception:
=> select id,date, author_id, subject, body from mail_message where model='
4577 | 2013-07-19 10:40:10 | 6 | | <p>Aucun fournisseur défini pour cet article !</p>
4569 | 2013-07-19 10:40:10 | 6 | | <div> • <b>Status</b>: Exception → Confirmed</div>
4576 | 2013-07-19 10:40:10 | 6 | | <div> • <b>Status</b>: Confirmed → Exception</div>
4715 | 2013-07-19 11:40:42 | 6 | | <div> • <b>Status</b>: Exception → Confirmed</div>
4727 | 2013-07-19 11:40:43 | 6 | | <p>Aucun fournisseur défini pour cet article !</p>
4726 | 2013-07-19 11:40:43 | 6 | | <div> • <b>Status</b>: Confirmed → Exception</div>
4775 | 2013-07-19 12:40:08 | 6 | | <div> • <b>Status</b>: Exception → Confirmed</div>
4786 | 2013-07-19 12:40:09 | 6 | | <div> • <b>Status</b>: Confirmed → Exception</div>
4787 | 2013-07-19 12:40:09 | 6 | | <p>Aucun fournisseur défini pour cet article !</p>
[...]
On some of these records, the number of generated mail.messages over time can be high:
=> select count(id) from mail_message where model='
count
-------
5287
(1 ligne)
It is not possible to display that record in Firefox or Chrome, because the page takes forever to display with the browser becoming totally unresponsive, until the tab is killed.
Several problems here:
* automated generation of messages on a periodic tasks, which runs the risk of generating an uncontrolled amount of messages.
* no pagination of the display of messages. The feature seems to exists (cf. the Messaging -> Inbox screen) but it is not used when displaying a record with attached messages
* no way of mass marking messages as read (typically admin is used to run the scheduler via cron and admin is not connected every day on a customer's instance to mark messages as read. When I connect using that account to do support, I am blocked by the amount of unread messages on the procurement order)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | New → Confirmed |
importance: | Medium → Low |
Changed in openobject-addons: | |
status: | Fix Released → Confirmed |
status: | Confirmed → Fix Released |
I confirm this issue, we are cleaning manually the messages, but we face this problem 2 or 3 times.
Even we customize the view of message to achieve it but IMHO it a bug, not leak of feature.