diff options
| -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( |
