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: