diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2025-09-12 05:37:34 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2025-09-12 05:37:34 +0000 |
| commit | 123e2bc2b83ffee06e28c804cb49c4a6b4c9b313 (patch) | |
| tree | bc4d4903482499d96a746825bc83988a2350514c /indoteknik_custom/models/approval_payment_term.py | |
| parent | 73d249fd48d0aeae8ac77946f07668210e12ae7b (diff) | |
| parent | cddba12aaf9c4265770487d407f96f2f3fd910ee (diff) | |
Merged in cr/mbak-wid (pull request #409)
Cr/mbak wid
Diffstat (limited to 'indoteknik_custom/models/approval_payment_term.py')
| -rw-r--r-- | indoteknik_custom/models/approval_payment_term.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indoteknik_custom/models/approval_payment_term.py b/indoteknik_custom/models/approval_payment_term.py index 08d91738..7cab91f1 100644 --- a/indoteknik_custom/models/approval_payment_term.py +++ b/indoteknik_custom/models/approval_payment_term.py @@ -69,8 +69,8 @@ class ApprovalPaymentTerm(models.Model): return res def _track_changes_for_user_688(self, vals, old_values_dict): - if self.env.user.id != 688: - return + # if self.env.user.id != 688: + # return tracked_fields = {"blocking_stage", "warning_stage", "property_payment_term_id"} @@ -106,7 +106,8 @@ class ApprovalPaymentTerm(models.Model): if changes: timestamp = fields.Datetime.now().strftime('%Y-%m-%d %H:%M:%S') - rec.change_log_688 = f"{timestamp} - Perubahan oleh Widya:\n" + "\n".join(changes) + user = self.env.user + rec.change_log_688 = f"{timestamp} - Perubahan oleh {user.name}:\n" + "\n".join(changes) @staticmethod |
