summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_picking.py
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2025-12-10 13:18:18 +0700
committerFIN-IT_AndriFP <andrifebriyadiputra@gmail.com>2025-12-10 13:18:18 +0700
commit3a153b5deaf2c11d2deb8aca2318357e4496ac96 (patch)
tree42c4298b6e45a6d366470d26b9d2905c04946dc9 /indoteknik_custom/models/stock_picking.py
parent8e6e3f900daac1b56cc7e101c7c491ef7eb320f5 (diff)
parentd746dacecc64c2effb9166b54808f0e81ea8303f (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
-rw-r--r--indoteknik_custom/models/stock_picking.py3
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..2f99a85a 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 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(