summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-08-20 15:26:39 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-08-20 15:26:39 +0700
commit1ca4ef399415974a0fac7a6c79780aff5181e0d6 (patch)
tree1bac03fc3754e8ab1f7df7d53159426aba7240c0
parenta6592c9b788fe366fc2780af40175805bab6b75c (diff)
(andri) limit dan payment term aja yang masuk ke changelog
-rw-r--r--indoteknik_custom/models/approval_payment_term.py8
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