diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-08 10:54:37 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-08 10:54:37 +0700 |
| commit | aa217ff1809015908d7aa16683de9b9ca34e1910 (patch) | |
| tree | 31e854392f3217c03569ccf5d2198558260b0050 /indoteknik_custom/models | |
| parent | a8886eb056d62ace630f15fb3eaa5d55a360b277 (diff) | |
<miqdad> rev 77 po fix sequence
Diffstat (limited to 'indoteknik_custom/models')
| -rw-r--r-- | indoteknik_custom/models/tukar_guling_po.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/tukar_guling_po.py b/indoteknik_custom/models/tukar_guling_po.py index f885017c..2e0ab604 100644 --- a/indoteknik_custom/models/tukar_guling_po.py +++ b/indoteknik_custom/models/tukar_guling_po.py @@ -55,7 +55,7 @@ class TukarGulingPO(models.Model): vals['name'] = sequence.next_by_id() else: # Fallback jika sequence belum dibuat - vals['name'] = self.env['ir.sequence'].next_by_code('tukar.guling.po') or 'embo==' + vals['name'] = self.env['ir.sequence'].next_by_code('tukar.guling.po') or 'new' # Auto-fill origin from operations if not vals.get('origin') and vals.get('operations'): |
