I am trying to set up some notifications in an addon that go directly to a specified user's OpenERP inbox. I was able to post a message to one of the document streams but I need to send a message to a user's inbox.
The following code adds a message to a (hardcoded) user's document (Sales > Customers, remove filter) message stream and not their inbox:
user = self.pool.get("res.users").browse(cr, uid, 1)
user.message_post(context=context, body="Hi, this message is showing up in the wrong place")
Does anyone have pointers to get my message to go to the right place?