diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-16 14:28:37 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-16 14:28:37 +0700 |
| commit | 67816f01ee3c9ed5e550bbb2d515d51a97e291ad (patch) | |
| tree | 07ff5e19308074a2aaa20aad971f843e76aa80df /indoteknik_custom/models/stock_picking.py | |
| parent | e534cd541152921e9f041176ab18b86172367fa9 (diff) | |
| parent | 2e1c1c057b76964f4c919371209c1216df53f222 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
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 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) ) |
