Always fill invoice date

issue10675
review363731003
This commit is contained in:
Sergi Almacellas Abellana committed 2021-10-05 13:33:42 +02:00
1 parent 4798a45b10
commit 05d57678e4
3 files changed
+5

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
* Always fill invoice date
Version 6.0.0 - 2021-05-03
* Bug fixes (see mercurial logs for details)
+1
View File
@@ -445,6 +445,7 @@ class Subscription(Workflow, ModelSQL, ModelView):
currency=self.currency,
account=party.account_receivable_used,
)
invoice.invoice_date = self.next_invoice_date
invoice.on_change_type()
invoice.payment_term = self.payment_term
return invoice
+2
View File
@@ -151,6 +151,8 @@ Create subscription invoice::
>>> create_invoice.execute('create_')
>>> invoice, = Invoice.find([])
>>> invoice.invoice_date
datetime.date(2016, 2, 1)
>>> line, = invoice.lines
>>> line.quantity
310.0