summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/stock_picking.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-05-08 09:39:29 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-05-08 09:39:29 +0700
commit6b3401c7542e26830d60667fa0dbd78c25cc7be9 (patch)
tree5b463c18dcab14e2f9297251052ec01ed0860df5 /indoteknik_custom/models/stock_picking.py
parent5bd86996e2af3eb9ce1167a3229cb290cca22e29 (diff)
push
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
-rw-r--r--indoteknik_custom/models/stock_picking.py2
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