Merge lp:~camptocamp/ocb-addons/7.0-fix-1311087-rgo into lp:ocb-addons

Proposed by Yannick Vaucher @ Camptocamp
Status: Rejected
Rejected by: Holger Brunn (Therp)
Proposed branch: lp:~camptocamp/ocb-addons/7.0-fix-1311087-rgo
Merge into: lp:ocb-addons
Diff against target: 17 lines (+4/-2)
1 file modified
mail/mail_message.py (+4/-2)
To merge this branch: bzr merge lp:~camptocamp/ocb-addons/7.0-fix-1311087-rgo
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) Disapprove
Leonardo Pistone Approve
Review via email: mp+224247@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Leonardo Pistone (lepistone) wrote :

Hi Yannick,

so this is already on the v7 on github. Now that OCB migration to github is in progress,
should we merge that in ocb on launchpad?

Other than that, I would approve the change.

Thanks!

review: Needs Information
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

Replay isn't working yet and passing from lp to github will make us having to replay all the MP we did.

I think that while we don't have OCB fully working on github we can fill the gap by merging that kind of MP in OCB on launchpad.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Please merge here on LP for the coming days, not on GitHub. The OCB branches will be overwritten by the final migration.

Revision history for this message
Leonardo Pistone (lepistone) wrote :

Thanks a lot Stefan.

review: Approve
Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

Development for 7.0 has moved to github on https://github.com/OCA/ocb - please move your merge proposal there if it is still valid.

(I close and reject this in order to have a cleaner overview for 6.1 MPs which indeed have to be done on launchpad)

review: Disapprove

Unmerged revisions

10218. By Ravi Gohil (OpenERP)

[FIX] mail: speed improvement in the process of sending an email through 'Send by email' option, fix backported from trunk rev: 9345(issue reproduced with client's db which has 6 million records for 'subtype_ids' o2m table). (Maintenance Case: 606994)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'mail/mail_message.py'
--- mail/mail_message.py 2014-03-10 08:54:20 +0000
+++ mail/mail_message.py 2014-06-24 08:43:01 +0000
@@ -881,9 +881,11 @@
881 fol_ids = fol_obj.search(cr, SUPERUSER_ID, [881 fol_ids = fol_obj.search(cr, SUPERUSER_ID, [
882 ('res_model', '=', message.model),882 ('res_model', '=', message.model),
883 ('res_id', '=', message.res_id),883 ('res_id', '=', message.res_id),
884 ('subtype_ids', 'in', message.subtype_id.id)
885 ], context=context)884 ], context=context)
886 partners_to_notify |= set(fo.partner_id for fo in fol_obj.browse(cr, SUPERUSER_ID, fol_ids, context=context))885 partners_to_notify |= set(
886 fo.partner_id for fo in fol_obj.browse(cr, SUPERUSER_ID, fol_ids, context=context)
887 if message.subtype_id.id in [st.id for st in fo.subtype_ids]
888 )
887 # remove me from notified partners, unless the message is written on my own wall889 # remove me from notified partners, unless the message is written on my own wall
888 if message.author_id and message.model == "res.partner" and message.res_id == message.author_id.id:890 if message.author_id and message.model == "res.partner" and message.res_id == message.author_id.id:
889 partners_to_notify |= set([message.author_id])891 partners_to_notify |= set([message.author_id])