Skip to content

Commit

Permalink
Merge pull request OCA#150 from p-tombez/bsibso-1033_set_subscription…
Browse files Browse the repository at this point in the history
…_invoice_date_to_cron

BSIBSO-1033 Set subscription invoice date to cron run date
  • Loading branch information
p-tombez committed Mar 13, 2018
2 parents b7f81c6 + a0bb829 commit be1f1a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ Latest (Unreleased)

**Features and Improvements**

* BSIBSO-1033: Set date and invoice_date to the same date as the cron generating
the invoices for subscriptions is ran

**Bugfixes**

**Build**
Expand Down
3 changes: 3 additions & 0 deletions odoo/local-src/specific_sale/models/sale_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,7 @@ def _prepare_invoice_data(self):
format_date(fields.Date.to_string(end_date), {}))
)

res['date'] = fields.Date.today()
res['date_invoice'] = fields.Date.today()

return res

0 comments on commit be1f1a6

Please sign in to comment.