From 60be14dda2275c57226f8b83a39bda1aee5eca0e Mon Sep 17 00:00:00 2001 From: chenye Date: Fri, 11 Jul 2025 17:49:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug7264=E5=92=8C7265?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_demand_plan/models/sf_demand_plan.py | 2 +- sf_demand_plan/views/demand_plan.xml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sf_demand_plan/models/sf_demand_plan.py b/sf_demand_plan/models/sf_demand_plan.py index 0039e51e..088ad0d6 100644 --- a/sf_demand_plan/models/sf_demand_plan.py +++ b/sf_demand_plan/models/sf_demand_plan.py @@ -212,7 +212,7 @@ class SfDemandPlan(models.Model): def name_get(self): result = [] for plan in self: - result.append((plan.id, plan.product_id.name)) + result.append((plan.id, plan.demand_plan_number)) return result def button_production_release_plan(self): diff --git a/sf_demand_plan/views/demand_plan.xml b/sf_demand_plan/views/demand_plan.xml index 146ece76..59f93423 100644 --- a/sf_demand_plan/views/demand_plan.xml +++ b/sf_demand_plan/views/demand_plan.xml @@ -32,9 +32,9 @@ - - - + + +