Tryton Proteus adding Notes

(0 comments)

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 ;)

Current rating: 1

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required

Recent Posts

Archive

2023
2022
2021
2020
2019
2018
2014
2012
2011
2010
2009
2008
2007

Categories

Authors

Feeds

RSS / Atom