diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-15 08:59:31 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-15 08:59:31 +0700 |
| commit | 997abf8c689d509c21955ecf39ffce5a236523ff (patch) | |
| tree | f1ec7cc388cb80f92f9e987f72aa0801a742bfb1 | |
| parent | 39f9f7626e601719a9dcd4e5b3143f0fce928224 (diff) | |
trying to fix bug automatic purchase
| -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 9d61e5f3..c8bd37f0 100644 --- a/indoteknik_custom/models/automatic_purchase.py +++ b/indoteknik_custom/models/automatic_purchase.py @@ -159,7 +159,7 @@ class AutomaticPurchase(models.Model): po = self.env['purchase.order'].search([ ('product_id', '=', lines.product_id.id), - ('order_sales_match_line.sale_id', 'in', [lines.automatic_purchase_id.sales_match.sale_id]), + ('order_sales_match_line.sale_id', 'in', [lines.automatic_purchase_id.sales_match.sale_id.id]), ('state', 'not in', ['cancel']), ('from_apo', '=', True) ], limit=1) |
