diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-10 11:15:26 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-10 11:15:26 +0700 |
| commit | 2c65cad93b296c059a7feb6b1d1fca3331981c89 (patch) | |
| tree | 5845d27924a28836bff5444961bd567c5f03c218 | |
| parent | 6f1b2a4337279a946ae999df38ba5682044a3bb2 (diff) | |
<Miqdad> fix smweentara
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 7970793e..6c498367 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1435,8 +1435,8 @@ class StockPicking(models.Model): ordered_pickings = [] for prefix in picking_order: match = next((p for p in related_pickings if p.name.startswith(prefix)), None) - # if not match: - # raise UserError(f"Picking dengan prefix {prefix} belum ada.") + if not match: + raise UserError(f"Picking dengan prefix {prefix} belum ada.") ordered_pickings.append(match) current_index = -1 @@ -1463,8 +1463,8 @@ class StockPicking(models.Model): group_id = self.env.ref('indoteknik_custom.group_role_merchandiser').id users_in_group = self.env['res.users'].search([('groups_id', 'in', [group_id])]) active_model = self.env.context.get('active_model') - if self.tukar_guling_po_id: - self.validate_seq_vcm() + # if self.tukar_guling_po_id: + # self.validate_seq_vcm() if self.is_so_fiktif == True: raise UserError("SO Fiktif tidak bisa di validate") if self.location_id.id == 47 and self.env.user.id not in users_in_group.mapped( |
