From 03dd5406aa1e4491d113b4fdfff213f11b05741c Mon Sep 17 00:00:00 2001 From: Raman Marikanti Date: Thu, 12 Feb 2026 15:00:30 +0530 Subject: [PATCH] DPR --- custom_addons/customer_orders/models/customer_order_line.py | 2 +- custom_addons/customer_orders/static/src/js/dashboard.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_addons/customer_orders/models/customer_order_line.py b/custom_addons/customer_orders/models/customer_order_line.py index 17d24c4e9..17c6aa0e7 100644 --- a/custom_addons/customer_orders/models/customer_order_line.py +++ b/custom_addons/customer_orders/models/customer_order_line.py @@ -140,7 +140,7 @@ class CustomerOrderLine(models.Model): def _compute_pending(self): for line in self: line.pending_production = max(0, line.order_qty - line.produced_qty) - line.pending_dispatch = max(0, line.produced_qty - line.dispatched_qty) + line.pending_dispatch = max(0, line.order_qty - line.dispatched_qty) @api.depends('order_qty', 'product_id', 'produced_qty', 'dispatched_qty', 'order_id.order_month', 'order_id.order_year') def _compute_quantity(self): diff --git a/custom_addons/customer_orders/static/src/js/dashboard.js b/custom_addons/customer_orders/static/src/js/dashboard.js index a37aafed3..22cab8c66 100644 --- a/custom_addons/customer_orders/static/src/js/dashboard.js +++ b/custom_addons/customer_orders/static/src/js/dashboard.js @@ -1395,7 +1395,7 @@ export class CustomerOrderStatusGrid extends Component { }, { title: "Pending Order", - width: 90, + width: 100, dataIndx: "pending_order", dataType: "float", align: "right", @@ -1410,7 +1410,7 @@ export class CustomerOrderStatusGrid extends Component { }, { title: "Current Month Order", - width: 90, + width: 100, dataIndx: "current_month_order", dataType: "float", align: "right", @@ -1424,7 +1424,7 @@ export class CustomerOrderStatusGrid extends Component { }, { title: "Total Order Qty", - width: 90, + width: 100, dataIndx: "total_order_qty", dataType: "float", align: "right",