summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-09-05 00:54:20 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-09-05 00:54:20 +0000
commitba8b646073ee09b962d58b24b340f47d18aa611f (patch)
tree684913237ac97808daaf9eea28d139cae9110e6e
parentcae2e6978066469505167da9469519ea2de14cab (diff)
sj_tele.py edited online with Bitbucket
-rw-r--r--indoteknik_custom/models/sj_tele.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sj_tele.py b/indoteknik_custom/models/sj_tele.py
index 9559a541..246c0f43 100644
--- a/indoteknik_custom/models/sj_tele.py
+++ b/indoteknik_custom/models/sj_tele.py
@@ -37,8 +37,8 @@ class SjTele(models.Model):
lines = []
for rec in data:
name = rec.picking_name or (rec.picking_id.name if rec.picking_id else '')
- pid = rec.picking_id.id if rec.picking_id else '-'
- so = rec.sale_id.name if rec.sale_id else '-'
+ pid = rec.picking_id.id if rec.picking_id else ''
+ so = rec.sale_id.name or rec.sale_name or ''
if name:
lines.append(f"{name} - {so} ({pid})")