The solution for miscalculation of dates

This commit is contained in:
Ozlem
2022-10-06 16:10:10 +03:00
committed by GitHub
parent 70467c5e86
commit 4cab8bfb07

View File

@@ -41,7 +41,7 @@ class Product(models.Model):
for x in self}
def _compute_inventory_turn_report(self):
month = relativedelta(month=1)
month = relativedelta(months=1)
today = fields.Date.today()
at_6m_ago = today - 6 * month
at_12m_ago = today - 12 * month