diff --git a/yuthon_property/models/property_accounts_receivable.py b/yuthon_property/models/property_accounts_receivable.py index e4b66a219..820399878 100644 --- a/yuthon_property/models/property_accounts_receivable.py +++ b/yuthon_property/models/property_accounts_receivable.py @@ -188,7 +188,7 @@ class PropertyAccountsReceivable(models.Model): def _onchange_discount_amount(self): for record in self: if record.discount_amount: - record.discount_date = fields.Date.today() - timedelta(hours=8), + record.discount_date = fields.Date.today() - timedelta(hours=8) else: record.discount_date = False