summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-01-10 15:12:20 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-01-10 15:12:20 +0700
commit509245ca0f8c208dfcbc50de63032fce7fb11e12 (patch)
tree498ab2e5b9ff92e4acae0503b966bd0f18c6ef94
parent88e5def4792743d2b3245e390f95df5a3f4be321 (diff)
cr qr code product
-rwxr-xr-xindoteknik_custom/models/product_template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py
index 9007dd71..5bedae13 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -416,7 +416,7 @@ class ProductProduct(models.Model):
box_size=5,
border=4,
)
- qr.add_data(rec.display_name)
+ qr.add_data(rec.default_code)
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")