diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-08-11 08:33:26 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-08-11 08:33:26 +0700 |
| commit | 7a329ad669cb9fe630a52651a438f9bb5f294c40 (patch) | |
| tree | 504fa4b01a858b216f0d73424f2528d7d992c59b | |
| parent | 0278f49a68fb9a9ce8844d3ecd9f56232710be38 (diff) | |
(andri) fix reminder
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index fd08ed60..7a331791 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -190,11 +190,16 @@ class AccountMove(models.Model): ]) _logger.info(f"Email Reminder Child {reminder_contacts}") - if not reminder_contacts: - _logger.info(f"Partner {partner.name} tidak memiliki email yang sudah ceklis reminder") - continue + # if not reminder_contacts: + # _logger.info(f"Partner {partner.name} tidak memiliki email yang sudah ceklis reminder") + # continue emails = list(filter(None, [partner.email])) + reminder_contacts.mapped('email') + if reminder_contacts: + _logger.info(f"Email Reminder Child {reminder_contacts}") + else: + _logger.info(f"Tidak ada child contact reminder, gunakan email utama partner") + if not emails: _logger.info(f"Partner {partner.name} tidak memiliki email yang bisa dikirimi") continue |
