>  I get the following error. 'WorkOrder' object has not attribute
> 'get_values'.  Any ideas?

Try this:

 def _pre_save(self):
               lastid = get_values(fields=['id'])[-1]['id']
               self.wonum = 'WO-'+lastid+1

Andreas

Reply via email to