summaryrefslogtreecommitdiff
path: root/fixco_custom/models/detail_order.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-06-13 14:35:38 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-06-13 14:35:38 +0700
commit55936047e729cadcd462a57c7838f77f7c57ee1a (patch)
tree9fabbef497dc1e555e88083581cf18be41c6db95 /fixco_custom/models/detail_order.py
parentf4ff9e2abad82f07e039c388af5e82034ae30694 (diff)
print picking list
Diffstat (limited to 'fixco_custom/models/detail_order.py')
-rwxr-xr-xfixco_custom/models/detail_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fixco_custom/models/detail_order.py b/fixco_custom/models/detail_order.py
index e3370b0..2c82db6 100755
--- a/fixco_custom/models/detail_order.py
+++ b/fixco_custom/models/detail_order.py
@@ -182,7 +182,7 @@ class DetailOrder(models.Model):
'product_id': bline.variant_id.id if bline.variant_id else product.id,
'product_uom_qty': bline.product_uom_qty * item.get('quantity') if bline.product_uom_qty else item.get('quantity'),
'price_unit': bline.price * bline.product_uom_qty if bline.price else item.get('actualPrice'),
- 'name': f"{bline.master_sku} (Bundle Component)" if bline.master_sku else product.name,
+ 'name': f"{bline.variant_id.display_name} (Bundle Component)" if bline.variant_id.display_name else product.name,
}))
continue