LVLogo

Tryton Proteus adding Notes

2021-01-03 — Thomas Raschbacher (LordVan)

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

[Tryton] product kit .. extra logic for components when expanded on sale quotation Tryton setup & config