← Back to team overview

openerp-india team mailing list archive

[Bug 1039625] [NEW] mass mail does not set partner_id

 

Public bug reported:

mass mail sets model and res_id

 select id,model,res_id,partner_id from mail_message order by id desc limit 1;
 id |    model    | res_id | partner_id 
----+-------------+--------+------------
  8 | res.partner |     24 |        

but in
 ./mail/res_partner.py

class res_partner(osv.osv):
    """ Inherits partner and adds CRM information in the partner form """
    _inherit = 'res.partner'
    _columns = {
        'emails': fields.one2many('mail.message', 'partner_id', 'Emails', readonly=True, domain=[('email_from','!=',False)]),
    }

hence the mass mail messages are not displayed in partner history

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1039625

Title:
  mass mail does not set partner_id

Status in OpenERP Addons (modules):
  New

Bug description:
  mass mail sets model and res_id

   select id,model,res_id,partner_id from mail_message order by id desc limit 1;
   id |    model    | res_id | partner_id 
  ----+-------------+--------+------------
    8 | res.partner |     24 |        

  but in
   ./mail/res_partner.py

  class res_partner(osv.osv):
      """ Inherits partner and adds CRM information in the partner form """
      _inherit = 'res.partner'
      _columns = {
          'emails': fields.one2many('mail.message', 'partner_id', 'Emails', readonly=True, domain=[('email_from','!=',False)]),
      }

  hence the mass mail messages are not displayed in partner history

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1039625/+subscriptions


Follow ups

References