Add comment

This commit is contained in:
Alexis de Lattre
2018-05-02 11:20:36 +02:00
parent f09e459e82
commit 1df8d0a461

View File

@@ -28,6 +28,10 @@ class AccountInvoice(models.Model):
@api.multi
def invoice_filename_to_match(self):
# I cannot use
# safe_eval(report.attachment, {'object': obj, 'time': time})
# Because, when this code is executed, the obj.state is not 'open'
# nor 'paid', so we can't get the filename that way
return 'INV%.pdf'
@api.multi