diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-08-15 09:08:22 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-08-15 09:08:22 +0700 |
| commit | aef7941fa025879bfa47ad626c0de7cb716e2ccc (patch) | |
| tree | 9eaea0a7b3fe2957a5b194474cc970218b5a953b | |
| parent | bfdaf12dc3e7abace11502fcf1cb6c87522f1a51 (diff) | |
fix bug
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index bf6834d0..d63c5d4c 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1060,7 +1060,7 @@ class StockPicking(models.Model): self.sale_id.date_doc_kirim = self.date_doc_kirim def action_assign(self): - if self.env.context.get('default_picking_type_id') and self.sale_id: + if self.env.context.get('default_picking_type_id') and ('BU/INPUT' not in self.name or 'BU/PUT' not in self.name): pickings_to_assign = self.filtered( lambda p: not (p.sale_id and p.sale_id.hold_outgoing) ) |
