From 121512a8232e62b32557161bdf40e41e294f47a8 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 1 Apr 2024 15:41:24 +0700 Subject: feedback purchasing job --- 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 6acc8424..2e080bcf 100644 --- a/indoteknik_custom/models/automatic_purchase.py +++ b/indoteknik_custom/models/automatic_purchase.py @@ -244,6 +244,7 @@ class AutomaticPurchase(models.Model): 'product_id': sale_order.product_id.id, 'qty_so': sale_order.qty_so, 'qty_po': sale_order.qty_po, + 'margin_so': sale_order.sale_line_id.item_percent_margin } po_matches_so_line = self.env['purchase.order.sales.match'].create([matches_so_line]) -- cgit v1.2.3