diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-10 11:23:04 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-10 11:23:04 +0700 |
| commit | d746dacecc64c2effb9166b54808f0e81ea8303f (patch) | |
| tree | ab553f6cbf43ceee5f81bc782ced145412bc7eba | |
| parent | 2c65cad93b296c059a7feb6b1d1fca3331981c89 (diff) | |
<MIqdad> run validate seq vcm when return type tukar guling
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 6c498367..2f99a85a 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -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 and self.tukar_guling_po_id.return_type == 'tukar_guling': + 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( |
