From 4f8f59f274e8ea19fcaa5f1c6b0e6e30400c66f7 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Tue, 15 Jul 2025 09:12:40 +0700 Subject: try --- indoteknik_custom/models/tukar_guling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indoteknik_custom/models/tukar_guling.py') 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: -- cgit v1.2.3