diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-08 09:39:29 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-08 09:39:29 +0700 |
| commit | 6b3401c7542e26830d60667fa0dbd78c25cc7be9 (patch) | |
| tree | 5b463c18dcab14e2f9297251052ec01ed0860df5 /indoteknik_custom/models/stock_picking.py | |
| parent | 5bd86996e2af3eb9ce1167a3229cb290cca22e29 (diff) | |
push
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 d032f99f..ccccbcdc 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -1248,7 +1248,7 @@ class StockPicking(models.Model): continue invoice = self.env['account.move'].search( - [('sale_id', '=', picking.sale_id.id), ('state', 'not in', ['draft', 'cancel'])], limit=1) + [('sale_id', '=', picking.sale_id.id), ('state', 'not in', ['draft', 'cancel']), ('move_type', '=', 'out_invoice')], limit=1) if not invoice: continue |
