From 6867d7e4ce6064534706a6a60782d40fd2fdc8ca Mon Sep 17 00:00:00 2001 From: guanhuan Date: Wed, 11 Jun 2025 09:48:53 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=9C=80=E6=B1=82=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=90=88=E5=90=8C=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_demand_plan/models/sf_production_demand_plan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sf_demand_plan/models/sf_production_demand_plan.py b/sf_demand_plan/models/sf_production_demand_plan.py index 086412fa..0b83b685 100644 --- a/sf_demand_plan/models/sf_production_demand_plan.py +++ b/sf_demand_plan/models/sf_production_demand_plan.py @@ -89,9 +89,9 @@ class SfProductionDemandPlan(models.Model): string='订单状态', related='sale_order_line_id.state') route_id = fields.Many2one('stock.route', string='路线', related='sale_order_line_id.route_id', store=True) - contract_date = fields.Date('合同日期') + contract_date = fields.Date('合同日期', related='sale_order_id.contract_date') date_order = fields.Datetime('下单日期', related='sale_order_id.date_order') - contract_code = fields.Char('合同号') + contract_code = fields.Char('合同号', related='sale_order_id.contract_code') plan_remark = fields.Text("计划备注") material_check = fields.Selection([ ('0', "未齐套"), From 37c5c9d49894cc0f1d69178bcf8a5440cd8d0d1d Mon Sep 17 00:00:00 2001 From: guanhuan Date: Wed, 11 Jun 2025 10:40:26 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=9C=80=E6=B1=82=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=8B=96=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sf_demand_plan/views/demand_plan.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sf_demand_plan/views/demand_plan.xml b/sf_demand_plan/views/demand_plan.xml index 587bb2ce..e68a46f6 100644 --- a/sf_demand_plan/views/demand_plan.xml +++ b/sf_demand_plan/views/demand_plan.xml @@ -3,7 +3,8 @@ sf.production.demand.plan.tree sf.production.demand.plan - +