diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-30 00:35:26 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-30 00:35:26 +0700 |
| commit | 55235e9521593311d4e0b4d5dc0e23d7563cf4ac (patch) | |
| tree | 3f32c03c62c380e3d12a59a803da9b300285e87a /indoteknik_custom/models/stock_picking.py | |
| parent | 6daa7c62dab03ce688773acd9c083bc845c9cf61 (diff) | |
<miqdad> rev so done
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 3e152f10..10cf23ef 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1380,6 +1380,12 @@ class StockPicking(models.Model): self.send_mail_bills() if 'BU/PUT' in self.name: self.automatic_reserve_product() + + if self.tukar_guling_id: + self.tukar_guling_id.update_state() + elif self.tukar_guling_po_id: + self.tukar_guling_po_id.update_state() + return res def automatic_reserve_product(self): |
