diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-15 09:12:40 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-15 09:12:40 +0700 |
| commit | 4f8f59f274e8ea19fcaa5f1c6b0e6e30400c66f7 (patch) | |
| tree | 59533030e720989108805c94b069872ef8d02407 /indoteknik_custom/models/tukar_guling.py | |
| parent | 15198bbee7d54580fadec9be6cbf69fb4a2d500d (diff) | |
<miqdad> try
Diffstat (limited to 'indoteknik_custom/models/tukar_guling.py')
| -rw-r--r-- | indoteknik_custom/models/tukar_guling.py | 2 |
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: |
