在调拨单验证前,先进行设置数量

This commit is contained in:
胡尧
2025-06-16 14:24:50 +08:00
parent 5ef8023169
commit af1bc021d6

View File

@@ -637,6 +637,8 @@ class StockPicking(models.Model):
if lot_ids:
move.action_clear_lines_show_details()
move.action_show_details()
# 先进行设置数量
self.action_set_quantities_to_reservation()
res = super().button_validate()
# lot_ids = None
# product_ids = self.move_ids.mapped('product_id')