From 2b3b0b8c0c54c9b63af16eaf011d925763021a83 Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Wed, 10 Aug 2022 17:25:18 +0700 Subject: Sync purchase_order_line.name to product.display_name, ubah state button view --- indoteknik_custom/models/purchase_order.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indoteknik_custom/models') diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index ba98d8d3..4931d738 100644 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -22,8 +22,8 @@ class PurchaseOrder(models.Model): values = { 'order_id': self.id, 'product_id': order_line.product_id.id, - 'name': order_line.product_id.name, - 'product_qty': order_line.product_qty + 'name': order_line.product_id.display_name, + 'product_qty': order_line.product_qty, } self.env['purchase.order.line'].sudo().create(values) -- cgit v1.2.3