summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-03-27 16:42:53 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-03-27 16:42:53 +0700
commit1c73ff956137e6abef8dfb95f5c245efe6145aa1 (patch)
treecca211016a44b83c2a84c2ec40f78b12bb17d603
parentd3165976ff4c87377a33bfb7f98ac87a7f9f7930 (diff)
trying to fix bug on apo
-rw-r--r--indoteknik_custom/models/automatic_purchase.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py
index 3e2d31e7..6acc8424 100644
--- a/indoteknik_custom/models/automatic_purchase.py
+++ b/indoteknik_custom/models/automatic_purchase.py
@@ -262,7 +262,7 @@ class AutomaticPurchase(models.Model):
purchase_line = self.env['automatic.purchase.line'].search([
('automatic_purchase_id', '=', self.id),
('product_id', 'in', [sales_match.product_id.id]),
- ])
+ ], limit=1)
matches_po_line = {
'sales_order_id' : sales_match.sale_id.id,