[IMP]GOLEM Resource Account : redirect to new invoice after wizard
This commit is contained in:
parent
89050d8920
commit
55f8818b9f
@ -37,8 +37,8 @@ class GolemReservationInvoiceWizard(models.TransientModel):
|
|||||||
|
|
||||||
self.reservation_ids.check_before_invoicing()
|
self.reservation_ids.check_before_invoicing()
|
||||||
self.reservation_ids[0].create_invoice()
|
self.reservation_ids[0].create_invoice()
|
||||||
|
invoice_id = self.reservation_ids[0].invoice_id
|
||||||
if len(self.reservation_ids) > 1:
|
if len(self.reservation_ids) > 1:
|
||||||
invoice_id = self.reservation_ids[0].invoice_id
|
|
||||||
self.reservation_ids[1:].create_invoice_line(invoice_id)
|
self.reservation_ids[1:].create_invoice_line(invoice_id)
|
||||||
|
|
||||||
# return {}
|
return self.reservation_ids[0].show_invoice()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user