So after a bit of experimenting I now know how to add Notes to other objects (like Party) for example:
(Assuming you got the connection set up in ipython using proteus or doign this in some script)
Note = Model.get('ir.note')
n2=Note()
n2.message = 'this is a test note from proteus'
n2.resource = prm # prm is a Party object that I fetched before
n2.save()
Fairly simple. not sure yet how to get notes that "belong" to a party object, but that is not important right now since I only need it for importing ;)
Share on Twitter Share on Facebook
Comments
There are currently no comments
New Comment