Skip to content
Snippets Groups Projects

Fix period selection around midnight to follow timezone

Merged Houzefa Abbasbhay requested to merge topic/16.0/tz into branch/16.0
6 files
+ 31
6
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 1
1
@@ -42,7 +42,7 @@ class AccountMove(models.Model):
def fill_period(self):
"""Find an open period around move date, set it onto that move."""
today = fields.Date.today()
today = fields.Date.context_today(self)
for accdoc in self:
acc_date = accdoc.date or today
Loading