diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-10 10:49:31 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2025-12-10 10:49:31 +0700 |
| commit | 93199aaed1ae3541fd9ecf5c0aa42b20140a7ad4 (patch) | |
| tree | f7f4fd1731140e037ace61428c17aa5b9bad2c76 | |
| parent | 6c740b7fcc4137fa59cee04cfbe0003529b31cd4 (diff) | |
<Miqdad> fix validate retur from vrt or prt manually
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 155664cb..cc6b69a3 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1463,7 +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') - 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( |
