From 6154a98329c467128541b992bcc41a8b1ca26867 Mon Sep 17 00:00:00 2001 From: "robin.keunen" Date: Fri, 10 May 2019 14:00:46 +0200 Subject: [PATCH] [IMP] cpo: add forecast qty to cpo view --- compute_purchase_order/models/computed_purchase_order_line.py | 2 +- compute_purchase_order/views/computed_purchase_order.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compute_purchase_order/models/computed_purchase_order_line.py b/compute_purchase_order/models/computed_purchase_order_line.py index 3e82b65..1b9a4f8 100644 --- a/compute_purchase_order/models/computed_purchase_order_line.py +++ b/compute_purchase_order/models/computed_purchase_order_line.py @@ -56,7 +56,7 @@ class ComputedPurchaseOrderLine(models.Model): 'into account incoming orders.') virtual_available = fields.Float( - string='Stock Quantity', + string='Forecast Quantity', related='product_template_id.virtual_available', read_only=True, help='Virtual quantity taking into account current stock, incoming ' diff --git a/compute_purchase_order/views/computed_purchase_order.xml b/compute_purchase_order/views/computed_purchase_order.xml index 16c94f1..c84432b 100644 --- a/compute_purchase_order/views/computed_purchase_order.xml +++ b/compute_purchase_order/views/computed_purchase_order.xml @@ -58,6 +58,7 @@ +