summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/account_move.py5
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 = []