优化选取适用夹头方法

This commit is contained in:
yuxianghui
2024-04-01 17:12:47 +08:00
parent e89b8ac65c
commit 02e4987281

View File

@@ -347,6 +347,7 @@ class FunctionalToolAssemblyOrder(models.TransientModel):
for chuck_product_lot_id in chuck_product_lot_ids:
if chuck_product_lot_id.quant_ids[-1].location_id.name in '刀具房':
return chuck_product_lot_id
return False
@api.depends('handle_code_id')
def _compute_rfid(self):