summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-02-25 10:49:49 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-02-25 10:49:49 +0700
commitf7a149c71824ba40f9e585d1df287b36853b7213 (patch)
tree3a56cba9d9548a32dca95466f53605d9b84707db
parent6352ba63a39293b3e260bd7bd933c9de2c023172 (diff)
fix bug
-rw-r--r--indoteknik_custom/models/purchase_order_sales_match.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order_sales_match.py b/indoteknik_custom/models/purchase_order_sales_match.py
index d6c2a631..4ebe959b 100644
--- a/indoteknik_custom/models/purchase_order_sales_match.py
+++ b/indoteknik_custom/models/purchase_order_sales_match.py
@@ -30,7 +30,7 @@ class PurchaseOrderSalesMatch(models.Model):
def _compute_purchase_price_po(self):
for line in self:
purchase_price = self.env['purchase.order.line'].search([('order_id', '=', line.purchase_order_id.id), ('product_id', '=', line.product_id.id)])
- line.purchase_price_po = purchase_price.purchase_price
+ line.purchase_price_po = purchase_price.price_unit
def _compute_delivery_amt(self):
for line in self: