diff --git a/yuthon_property/models/property_accounts_receivable.py b/yuthon_property/models/property_accounts_receivable.py index dc510fe2f..d1c4befee 100644 --- a/yuthon_property/models/property_accounts_receivable.py +++ b/yuthon_property/models/property_accounts_receivable.py @@ -58,7 +58,7 @@ class PropertyAccountsReceivable(models.Model): else: self.void_date = False - @api.depends('discount_amount') + @api.onchange('discount_amount') def _onchange_discount_amount(self): for record in self: if record.discount_amount: