Add a new field to Operations to permit a better export to qif

Signed-off-by: Romain Bignon <romain@peerfuse.org>
This commit is contained in:
ffourcot 2011-09-08 17:24:45 +02:00 committed by Romain Bignon
commit 9d900578a3
2 changed files with 3 additions and 1 deletions

View file

@ -59,6 +59,7 @@ class Operation(CapBaseObject):
self.add_field('date', (basestring, datetime, date))
self.add_field('label', unicode)
self.add_field('amount', float)
self.add_field('category', unicode)
def __repr__(self):
return "<Operation date='%s' label='%s' amount=%s>" % (self.date,