diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-19 15:25:16 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-19 15:25:16 +0700 |
| commit | fe9430a64322b018b12c4ea548ec03079c68c06d (patch) | |
| tree | 0143bcbb375e4702c4d229cae544c582a11fe7fa | |
| parent | f5d261ee2d263603d5becb32832765863c9dd9e8 (diff) | |
fix bug
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 9b8f6775..82ac9735 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1012,8 +1012,8 @@ class StockPicking(models.Model): self.sale_id.date_doc_kirim = self.date_doc_kirim def action_assign(self): - if self.sale_id.hold_outgoing == True and self.location_id.id == 57 and self.location_dest_id.id == 60: - raise UserError("SO on hold") + # if self.sale_id.hold_outgoing == True and self.location_id.id == 57 and self.location_dest_id.id == 60: + # raise UserError("SO on hold") res = super(StockPicking, self).action_assign() current_time = datetime.datetime.utcnow() self.real_shipping_id = self.sale_id.real_shipping_id |
