Apply suggestions from code review
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
parent
48cd4de0d2
commit
8787ebf83d
@ -384,7 +384,7 @@ class Subscription(Document):
|
|||||||
invoice.flags.ignore_mandatory = True
|
invoice.flags.ignore_mandatory = True
|
||||||
invoice.save()
|
invoice.save()
|
||||||
|
|
||||||
if self.submit_invoice == 1:
|
if self.submit_invoice:
|
||||||
invoice.submit()
|
invoice.submit()
|
||||||
|
|
||||||
return invoice
|
return invoice
|
||||||
|
Loading…
Reference in New Issue
Block a user