summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-09-14 13:30:14 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-09-14 13:30:14 +0700
commit98bdb05daa79c46b0a1f4284d19e65ed3a7d2f48 (patch)
tree719b6efcfe210ea71fd16a445069af7d482ceac8
parent2e9f95e8201692317d1ce23f6992fdb0e37dc95c (diff)
bug fix delete purchase order line cause of calculate margin match
-rwxr-xr-xindoteknik_custom/models/purchase_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py
index afa67cf2..8a47482a 100755
--- a/indoteknik_custom/models/purchase_order.py
+++ b/indoteknik_custom/models/purchase_order.py
@@ -75,7 +75,7 @@ class PurchaseOrder(models.Model):
for purchase in self:
match = self.env['purchase.order.sales.match']
result = match.read_group(
- [('purchase_order_id.id', '=', purchase.id)],
+ [('purchase_order_id', '=', purchase.id)],
['margin_item'],
[]
)