From b4ed65a75c4f6e7390257ffd4245cdd2ff2cd4f5 Mon Sep 17 00:00:00 2001 From: guanhuan Date: Thu, 19 Jun 2025 10:37:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E9=9C=80=E6=B1=82=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=A2=9E=E5=8A=A0=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA?= 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 ++-- sf_demand_plan/wizard/sf_demand_plan_print_wizard.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sf_demand_plan/models/sf_production_demand_plan.py b/sf_demand_plan/models/sf_production_demand_plan.py index 72c6593f..79fcb99b 100644 --- a/sf_demand_plan/models/sf_production_demand_plan.py +++ b/sf_demand_plan/models/sf_production_demand_plan.py @@ -69,10 +69,10 @@ class SfProductionDemandPlan(models.Model): "交货数量", related='sale_order_line_id.qty_delivered') qty_to_deliver = fields.Float( "待交货数量", related='sale_order_line_id.qty_to_deliver') - model_long = fields.Char('尺寸', compute='_compute_model_long') + model_long = fields.Char('尺寸(mm)', compute='_compute_model_long') blank_type = fields.Selection([('圆料', '圆料'), ('方料', '方料')], string='坯料分类', related='product_id.blank_type') - embryo_long = fields.Char('坯料尺寸', compute='_compute_embryo_long') + embryo_long = fields.Char('坯料尺寸(mm)', compute='_compute_embryo_long') materials_id = fields.Char('材料', compute='_compute_materials_id', store=True) model_machining_precision = fields.Selection(selection=_get_machining_precision, string='精度', related='product_id.model_machining_precision') diff --git a/sf_demand_plan/wizard/sf_demand_plan_print_wizard.py b/sf_demand_plan/wizard/sf_demand_plan_print_wizard.py index 0e8da725..74c4b12f 100644 --- a/sf_demand_plan/wizard/sf_demand_plan_print_wizard.py +++ b/sf_demand_plan/wizard/sf_demand_plan_print_wizard.py @@ -42,7 +42,7 @@ class SfDemandPlanPrintWizard(models.TransientModel): if pdf_data: try: # 执行打印 - # self.env['jikimo.printing'].sudo().print_pdf(pdf_data) + self.env['jikimo.printing'].sudo().print_pdf(pdf_data) record.status = 'success' t_part, c_part = record.demand_plan_id.print_count.split('C') t_num = int(t_part[1:])