Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have a question about the Chatter: (mail.thread)
I have a Wizard that allows me to add an Attachment. When I click Send, the Attachment should be in the Chat with a body (please see attached file) so that the followers can see it.
here's my code :
piece= fields.Many2many('ir.attachment', string="Pièce", required=True)
subject = u" Pièce Justificative"
body = u" please see attached file here "
self.message_post(body, attachments_ids=[ self.piece_justif], subject=subject.encode('utf-8'), type="notification")
Field & Button :
<field name="piece" widget="many2many_binary"/>
when i click Send, it gives me this error :
File "/opt/odoo/addons/mail/mail_thread.py", line 1595, in message_post thread_id = thread_id IndexError: list index out of range
any help would be appreciated
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/18/16, 6:58 AM|
|Seen: 871 times|
|Last updated: 5/18/16, 11:01 AM|