diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-03-27 16:42:53 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-03-27 16:42:53 +0700 |
| commit | 1c73ff956137e6abef8dfb95f5c245efe6145aa1 (patch) | |
| tree | cca211016a44b83c2a84c2ec40f78b12bb17d603 | |
| parent | d3165976ff4c87377a33bfb7f98ac87a7f9f7930 (diff) | |
trying to fix bug on apo
| -rw-r--r-- | indoteknik_custom/models/automatic_purchase.py | 2 |
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, |
