← Back to team overview

openerp-india team mailing list archive

[Bug 1223005] Re: No record_name on mail_message when creating by one2many field

 

Hi! thanks for the quick response. 
Sorry for my wrong explanation, it is not related to inherits (we are note using inherits). 
It is a general problem when:
1. You have a class that inherit from mail.thread
2. you create a new record of that class from another class by a one2many field (I supose many2many fild has same problem)

I'm attaching a simple module to replicate de error. Follow this steps

1. New database whithout demo
2. Install modulo test_communication (attached)
3. Create user demo
4. In menu "messaging/organizer/test" create a new record with "Test One 2 Many" field --> save
5. Enter the sub-record on "test one 2 many" field, add demo user as follower and send a message
6. Create a new record on "messaging/organizer/Test One 2 Many", make demo follower and send a message
7. Log in with demo
8. you will find out that one message doen't have header, see picture attached. Each message refers to the same class ("res.test_one2many"). 

Abrazo!

** Attachment added: "Module and image"
   https://bugs.launchpad.net/openobject-addons/+bug/1223005/+attachment/3815248/+files/sources.tar.gz

-- 
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/1223005

Title:
  No record_name on mail_message when creating by one2many field

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Affects openobject-addons on trunk and 7.0
  Module: mail (and the ones that inherits from mail.thread)

  Class 1 has one2many field to Class 2
  Class 2 inherits from 'mail.thread'

  When creating a record of "class 1" and from the one2many widget we
  create a record of "class 2". A new mail.message is generated but the
  record_name field is not set.

  If we generate a record of "class 2" directly from its menu, the
  record_name fied is set correctly.

  The mayor problem is that then, in the inbox message, you can see the
  message but id donsn't have a title so you can't to which record it
  belongs

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


References