summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-07-08 10:54:37 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-07-08 10:54:37 +0700
commitaa217ff1809015908d7aa16683de9b9ca34e1910 (patch)
tree31e854392f3217c03569ccf5d2198558260b0050
parenta8886eb056d62ace630f15fb3eaa5d55a360b277 (diff)
<miqdad> rev 77 po fix sequence
-rw-r--r--indoteknik_custom/models/tukar_guling_po.py2
-rw-r--r--indoteknik_custom/views/ir_sequence.xml2
2 files changed, 2 insertions, 2 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'):
diff --git a/indoteknik_custom/views/ir_sequence.xml b/indoteknik_custom/views/ir_sequence.xml
index b02e927a..8ae532cc 100644
--- a/indoteknik_custom/views/ir_sequence.xml
+++ b/indoteknik_custom/views/ir_sequence.xml
@@ -201,7 +201,7 @@
<record id="seq_tukar_guling_po" model="ir.sequence">
<field name="name">Pengajuan Return PO</field>
<field name="code">tukar.guling.po</field>
- <field name="prefix">VCM</field>
+ <field name="prefix">VCM/</field>
<field name="padding">5</field>
<field name="number_next">1</field>
<field name="number_increment">1</field>