From 27f333cc14b8673b3c46e1969736d2fb60d9924f Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Thu, 16 Jan 2025 10:26:39 +0700 Subject: add other subtotal and cr apo --- indoteknik_custom/models/automatic_purchase.py | 1 + 1 file changed, 1 insertion(+) (limited to 'indoteknik_custom/models/automatic_purchase.py') diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py index 4e96e6d4..09d283eb 100644 --- a/indoteknik_custom/models/automatic_purchase.py +++ b/indoteknik_custom/models/automatic_purchase.py @@ -255,6 +255,7 @@ class AutomaticPurchase(models.Model): 'suggest': product._get_po_suggest(line.qty_purchase), 'product_uom_qty': line.qty_purchase, 'price_unit': line.last_price, + 'ending_price': line.last_price, 'taxes_id': [line.taxes_id.id] if line.taxes_id else None, 'so_line_id': sales_match[0].sale_line_id.id if sales_match else None, 'so_id': sales_match[0].sale_id.id if sales_match else None -- cgit v1.2.3