diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-08-05 11:52:32 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-08-05 11:52:32 +0700 |
| commit | d115f21b64e72af553d7c8965b9426b2802a0e3c (patch) | |
| tree | 91584ee3b04cd2ecaf3ceec5dec6ddc780fbc867 | |
| parent | eb91fb8b9cf3ebc68f6c609acbc85015ce902cab (diff) | |
fix bug
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index 929af949..4be6c984 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -104,7 +104,10 @@ class AccountMove(models.Model): lambda p: move.id in p.reconciled_invoice_ids.ids ) - move.payment_date = payment[0].date + if payment: + move.payment_date = payment[0].date + else: + move.payment_date = False # def name_get(self): # result = [] |
