summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/tukar_guling.py
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-07-15 09:12:40 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-07-15 09:12:40 +0700
commit4f8f59f274e8ea19fcaa5f1c6b0e6e30400c66f7 (patch)
tree59533030e720989108805c94b069872ef8d02407 /indoteknik_custom/models/tukar_guling.py
parent15198bbee7d54580fadec9be6cbf69fb4a2d500d (diff)
<miqdad> try
Diffstat (limited to 'indoteknik_custom/models/tukar_guling.py')
-rw-r--r--indoteknik_custom/models/tukar_guling.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/tukar_guling.py b/indoteknik_custom/models/tukar_guling.py
index 89f5994d..7e857d02 100644
--- a/indoteknik_custom/models/tukar_guling.py
+++ b/indoteknik_custom/models/tukar_guling.py
@@ -205,6 +205,7 @@ class TukarGuling(models.Model):
raise ValidationError(
_("Tidak bisa memilih Return Type 'Revisi SO' karena dokumen %s sudah dibuat invoice.") % record.origin
)
+
@api.model
def create(self, vals):
# Generate sequence number
@@ -269,7 +270,6 @@ class TukarGuling(models.Model):
# else:
# _logger.info("hehhe")
-
if 'operations' in vals and not vals.get('origin'):
picking = self.env['stock.picking'].browse(vals['operations'])
if picking.origin: