diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-02-25 10:49:49 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-02-25 10:49:49 +0700 |
| commit | f7a149c71824ba40f9e585d1df287b36853b7213 (patch) | |
| tree | 3a56cba9d9548a32dca95466f53605d9b84707db | |
| parent | 6352ba63a39293b3e260bd7bd933c9de2c023172 (diff) | |
fix bug
| -rw-r--r-- | indoteknik_custom/models/purchase_order_sales_match.py | 2 |
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: |
