diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-08-21 12:06:41 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-08-21 12:06:41 +0000 |
| commit | 75ce4a99465a03b495f6418fb65f68efe7d6c504 (patch) | |
| tree | 7f1f53e79112c88c1b7f9572df0d4154a4c6e44c | |
| parent | bc2614bf4f8b2eba30491dd2adf2b6812444f906 (diff) | |
| parent | 1ca4ef399415974a0fac7a6c79780aff5181e0d6 (diff) | |
Merged in rev-apt (pull request #393)
(andri) limit dan payment term aja yang masuk ke changelog
| -rw-r--r-- | indoteknik_custom/models/approval_payment_term.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/approval_payment_term.py b/indoteknik_custom/models/approval_payment_term.py index 4cf9a4c8..8618856a 100644 --- a/indoteknik_custom/models/approval_payment_term.py +++ b/indoteknik_custom/models/approval_payment_term.py @@ -72,20 +72,20 @@ class ApprovalPaymentTerm(models.Model): if self.env.user.id != 688: return + tracked_fields = {"blocking_stage", "warning_stage", "property_payment_term_id"} + for rec in self: changes = [] old_values = old_values_dict.get(rec.id, {}) for field_name, new_value in vals.items(): - if field_name not in rec._fields or field_name == 'change_log_688': + if field_name not in tracked_fields: continue field = rec._fields[field_name] old_value = old_values.get(field_name) + field_label = field.string # label user-friendly - field_label = field.string # Ambil label user-friendly - - # Relational field if field.type == 'many2one': old_id = old_value[0] if old_value else False is_different = old_id != new_value |
