修改机台二维码为机台ID

This commit is contained in:
胡尧
2025-04-23 16:16:25 +08:00
parent 3f88b11a18
commit 83feb78f43

View File

@@ -844,7 +844,7 @@ class SfMaintenanceEquipment(models.Model):
box_size=10, box_size=10,
border=4, border=4,
) )
qr.add_data(record.name) qr.add_data(record.id)
qr.make(fit=True) qr.make(fit=True)
qr_image = qr.make_image(fill_color="black", back_color="white") qr_image = qr.make_image(fill_color="black", back_color="white")