Apply suggestions from code review

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
This commit is contained in:
meike289 2021-04-23 08:06:29 +02:00 committed by GitHub
parent 48cd4de0d2
commit 8787ebf83d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -384,7 +384,7 @@ class Subscription(Document):
invoice.flags.ignore_mandatory = True
invoice.save()
if self.submit_invoice == 1:
if self.submit_invoice:
invoice.submit()
return invoice