From abe993ca60d2e29b70ae48cc1a64d8532d983137 Mon Sep 17 00:00:00 2001 From: raman Date: Wed, 12 Nov 2025 15:34:15 +0530 Subject: [PATCH] date invoce date --- custom_addons/dashboard/models/stock_dashboard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/custom_addons/dashboard/models/stock_dashboard.py b/custom_addons/dashboard/models/stock_dashboard.py index 31f55d0f7..8f972ba8f 100644 --- a/custom_addons/dashboard/models/stock_dashboard.py +++ b/custom_addons/dashboard/models/stock_dashboard.py @@ -148,6 +148,7 @@ class SamashtiDashboard(models.AbstractModel): customer = r['partner_id'][-1] quantity = sum(self.env['sale.order'].browse(r['id']).order_line.mapped('product_uom_qty')) weight = str(sum(self.env['sale.order'].browse(r['id']).order_line.mapped('bag_weight')))+" kg" + date = str(self.env['sale.order'].invoice_ids.invoice_date) datas.append({ 'sale_order': r['name'], @@ -156,7 +157,7 @@ class SamashtiDashboard(models.AbstractModel): 'customer':customer, 'quantity':quantity, 'cost': cost, - 'date':r['date_order'], + 'date':date, 'sale_price': sale_price, 'margin': margin, 'margin_percent':margin_percent