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.
suppose i have two objects ( b.Load & b.Purchase ) and each one has its chatter.
when i select an attachment, it is displayed in the chatter of the object b.load.
Then i click on "Validate" and the record is created in b.purchase via self.env['b.purchase'].create(..).
What i need is when i click on this record, the attachment must have already been displayed in its chatter ( the chatter of this record in the second object.
in b.load, i have this :
attachment_ids=[x.id for x in self.piece_justif],)
in b.purchase, i tried this but nothing happens :
subject = ".."
body = ".."self.message_post(subject=subject.encode('utf-8'),
attachment_ids=[x.id for x in self.env['b.load'].browse(self.env.context.get('attachment_ids'))],)
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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: 6/2/16, 6:00 AM|
|Seen: 251 times|
|Last updated: 6/2/16, 6:22 AM|