diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-14 20:06:30 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-14 20:06:30 +0700 |
| commit | 2f90a316e0895b7b3167ee1ff36d282736456a2d (patch) | |
| tree | a5e99d1d1424eaf0dbf422457efabb624c063187 | |
| parent | d85a5d35904a941bd0d87b3f3402b35b003eaab2 (diff) | |
<miqdad> remove replace bu input name
| -rw-r--r-- | indoteknik_custom/models/tukar_guling_po.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indoteknik_custom/models/tukar_guling_po.py b/indoteknik_custom/models/tukar_guling_po.py index 9bcced0d..3698f95a 100644 --- a/indoteknik_custom/models/tukar_guling_po.py +++ b/indoteknik_custom/models/tukar_guling_po.py @@ -472,11 +472,11 @@ class TukarGulingPO(models.Model): 'location_dest_id': default_location_dest_id, }) - # Rename BU INPUT jadi BU/INPUT/ - if return_picking.picking_type_id.id == 28 and return_picking.name.startswith('BU/IN/'): - old_name = return_picking.name - return_picking.name = return_picking.name.replace('BU/IN/', 'BU/INPUT/', 1) - _logger.info("Rename %s -> %s", old_name, return_picking.name) + # # Rename BU INPUT jadi BU/INPUT/ + # if return_picking.picking_type_id.id == 28 and return_picking.name.startswith('BU/IN/'): + # old_name = return_picking.name + # return_picking.name = return_picking.name.replace('BU/IN/', 'BU/INPUT/', 1) + # _logger.info("Rename %s -> %s", old_name, return_picking.name) return return_picking |
