Accept Merge Request #2286: (feature/7253 -> develop)
Merge Request: BUG_7276_lxb_commit Created By: @李晓斌 Reviewed By: @胡尧 Approved By: @胡尧 Accepted By: @李晓斌 URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/2286
This commit is contained in:
@@ -607,11 +607,6 @@ class SfProductionDemandPlan(models.Model):
|
|||||||
filtered_plan = self.filtered(lambda mo: mo.status == '30')
|
filtered_plan = self.filtered(lambda mo: mo.status == '30')
|
||||||
if not filtered_plan:
|
if not filtered_plan:
|
||||||
raise UserError(_("没有需要下达的计划!"))
|
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 = {}
|
product_data = {}
|
||||||
for plan in filtered_plan:
|
for plan in filtered_plan:
|
||||||
|
|||||||
Reference in New Issue
Block a user