diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-01-10 15:12:20 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-01-10 15:12:20 +0700 |
| commit | 509245ca0f8c208dfcbc50de63032fce7fb11e12 (patch) | |
| tree | 498ab2e5b9ff92e4acae0503b966bd0f18c6ef94 | |
| parent | 88e5def4792743d2b3245e390f95df5a3f4be321 (diff) | |
cr qr code product
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 2 |
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") |
