summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'],
[]
)