parent
1ab8910813
commit
19074b00b7
|
@ -152,8 +152,7 @@ class TransactionView(DetailView):
|
||||||
# create an invoice :
|
# create an invoice :
|
||||||
# 1. create a base from request and regie options
|
# 1. create a base from request and regie options
|
||||||
invoice = {}
|
invoice = {}
|
||||||
if hasattr(self.request.user, 'email'):
|
invoice['email'] = getattr(self.request.user, 'email', None)
|
||||||
invoice['email'] = self.request.user.email
|
|
||||||
request_options = dict([(option.name, option.value) \
|
request_options = dict([(option.name, option.value) \
|
||||||
for option in self.object.requestoption_set.all()])
|
for option in self.object.requestoption_set.all()])
|
||||||
invoice.update(request_options)
|
invoice.update(request_options)
|
||||||
|
|
Reference in New Issue