From f3e7ba7f681ad8ab79a06709643b5709f279e8c8 Mon Sep 17 00:00:00 2001 From: "lixiaobin@jikimo.com" Date: Tue, 15 Jul 2025 14:17:38 +0800 Subject: [PATCH] BUG_7276_lxb_commit --- sf_demand_plan/models/sf_production_demand_plan.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sf_demand_plan/models/sf_production_demand_plan.py b/sf_demand_plan/models/sf_production_demand_plan.py index 9f53f163..d913aa3b 100644 --- a/sf_demand_plan/models/sf_production_demand_plan.py +++ b/sf_demand_plan/models/sf_production_demand_plan.py @@ -607,11 +607,6 @@ class SfProductionDemandPlan(models.Model): filtered_plan = self.filtered(lambda mo: mo.status == '30') if not filtered_plan: raise UserError(_("没有需要下达的计划!")) - check_overdelivery_allowed = False - if not self.demand_plan_id.overdelivery_allowed: - customer_location_id = self.env['ir.model.data']._xmlid_to_res_id('stock.stock_location_customers') - if self.location_id.id == customer_location_id: - check_overdelivery_allowed = True # 按产品分组并计算总数 product_data = {} for plan in filtered_plan: