diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-08-15 14:04:47 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-08-15 14:04:47 +0700 |
| commit | b133092eb4d27174f774d96f0a090670ad694d19 (patch) | |
| tree | 106326a271941ceded00967784a13352012d95cf /indoteknik_custom/models/stock_picking.py | |
| parent | a19a78db2e3ff278ef56007629f3d9f5e9c89110 (diff) | |
| parent | 8dd70f877c68abb3f0331e18f4652acb11e1bf84 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into pum-v2
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..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'): + 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) ) |
