diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-08-21 20:03:48 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-08-21 20:03:48 +0700 |
| commit | 0aa596341f2832ca17e713450f64d7f7f9b1ba4c (patch) | |
| tree | 57e19bbb32007fe355515fa56d22104a1185dc96 /indoteknik_custom/models/approval_payment_term.py | |
| parent | c8ca82a47aca049cddf6a741477b7b06d20f8dea (diff) | |
| parent | 4b549234856b810bd99f8b1e18e01da90ccdc1e1 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into reminder-tempo-v2
Diffstat (limited to 'indoteknik_custom/models/approval_payment_term.py')
| -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 |
