diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-01-25 08:46:54 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-01-25 08:46:54 +0700 |
| commit | 43f0f79f96233e0b7b31b643e27d50887266a527 (patch) | |
| tree | ea56302e2d28a4b57c0f1fab721c00c30cc3b15a /indoteknik_custom/models/product_template.py | |
| parent | ca9775c274d5e3de8f60abd66f14fa4fcb44a4ab (diff) | |
| parent | 8af596373c8eb997bbb96cf020f670b6b60b57ca (diff) | |
Merge branch 'dev/wms' into odoo-production
# Conflicts:
# indoteknik_custom/models/__init__.py
Diffstat (limited to 'indoteknik_custom/models/product_template.py')
| -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 5bedae13..29608297 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.default_code) + qr.add_data(rec.barcode if rec.barcode else rec.default_code) qr.make(fit=True) img = qr.make_image(fill_color="black", back_color="white") |
