diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-27 16:34:31 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-27 16:34:31 +0700 |
| commit | eb6a5e2b0196681678aab64c98ffced9c4941cc5 (patch) | |
| tree | 370ea78bc34d4fa682038621fd31af60131a11d8 /indoteknik_api/models | |
| parent | ae9766498d304a8336737453310e4272929cea73 (diff) | |
<miqdad> show only bu out in list transaction, list shipping, and detail transaction
Diffstat (limited to 'indoteknik_api/models')
| -rw-r--r-- | indoteknik_api/models/sale_order.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_api/models/sale_order.py b/indoteknik_api/models/sale_order.py index 727379c5..baba7c37 100644 --- a/indoteknik_api/models/sale_order.py +++ b/indoteknik_api/models/sale_order.py @@ -29,6 +29,8 @@ class SaleOrder(models.Model): 'pickings': [] } for picking in sale_order.picking_ids: + if not picking.name.startswith('BU/OUT'): + continue data['pickings'].append({ 'id': picking.id, 'name': picking.name, |
