summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/automatic_purchase.py
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-05-07 13:53:25 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-05-07 13:53:25 +0700
commitb4ffa966359dc841e491d126d4a5744e2c195063 (patch)
tree163255ea8e851b555ff51617372a97e7b18d0f0e /indoteknik_custom/models/automatic_purchase.py
parent2b6733ba60c60fe750fdc6e8d2918937fb677e5b (diff)
parent71a780abc391d11c2fe2ea16a953eefd2ff74219 (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into feat_voucher_category
Diffstat (limited to 'indoteknik_custom/models/automatic_purchase.py')
-rw-r--r--indoteknik_custom/models/automatic_purchase.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py
index a39abba9..d619e160 100644
--- a/indoteknik_custom/models/automatic_purchase.py
+++ b/indoteknik_custom/models/automatic_purchase.py
@@ -699,7 +699,8 @@ class SaleNotInMatchPO(models.Model):
where apsm.sale_line_id not in (
select distinct coalesce(posm.sale_line_id,0)
from purchase_order_sales_match posm
- where posm.state not in ('cancel')
+ left join purchase_order po on po.id = posm.purchase_order_id
+ where po.state not in ('cancel')
)
)
""" % self._table)