diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-08-15 09:10:07 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-08-15 09:10:07 +0700 |
| commit | 9ea33822721c3c548675633effdf679cc1a99b0d (patch) | |
| tree | 7aac3bbc6712376354c2c05c03e1acb319a8b335 /indoteknik_custom/models/stock_picking.py | |
| parent | 7644260c8b660c71aa1f9232cb50acea551798c2 (diff) | |
| parent | 4e1d5fa01a64bc6daa6c7bf7255caa55ccf53c59 (diff) | |
<hafid> revisi refund system
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
| -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 eb1c7085..bf6834d0 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'): + if self.env.context.get('default_picking_type_id') and self.sale_id: pickings_to_assign = self.filtered( lambda p: not (p.sale_id and p.sale_id.hold_outgoing) ) |
