Setra expects datetime.datetime, not datetime.date In addition, voucherdate is in fact not optional, but transtype IS.