I am working with gnuhealth and trying to use the proteus package to insert demo data into my system.
Unfortunately the docu for proteus is really short and I struggle to figure some things out
I know how to get the name of the models from “Administration>Models>Models”.
But how do I get the values which need to be assigned to create a new patient in my case?
from proteus import config, Model, Wizard, Report config.set_trytond('postgres:///health') Patient = Model.get('gnuhealth.patient') pat = Patient() # which fields are required? pat.name = "Max" # ... pat.save()
This gives me an Assertion Error, without any further information.
My guess is, that the model Patient needs more fields assigned.
Is there a place or page in the gui where I might have a look at the required fields?
Thanks and kind regards