+
-
+
custom.model.form.view.inherit
@@ -451,6 +451,7 @@
+
diff --git a/sf_manufacturing/views/product_template_views.xml b/sf_manufacturing/views/product_template_views.xml
index 92049dee..0f6bcb5d 100644
--- a/sf_manufacturing/views/product_template_views.xml
+++ b/sf_manufacturing/views/product_template_views.xml
@@ -6,7 +6,7 @@
product.template
-
+
diff --git a/sf_plan/models/custom_plan.py b/sf_plan/models/custom_plan.py
index af5b387f..60aa4a84 100644
--- a/sf_plan/models/custom_plan.py
+++ b/sf_plan/models/custom_plan.py
@@ -224,11 +224,11 @@ class sf_production_plan(models.Model):
return num
- def do_production_schedule(self):
+ def do_production_schedule(self, date_planned_start):
"""
排程方法
"""
- self.deal_processing_schedule(self.date_planned_start)
+ self.deal_processing_schedule(date_planned_start)
for record in self:
if not record.production_line_id:
raise ValidationError("未选择生产线")
diff --git a/sf_plan/wizard/action_plan_some.py b/sf_plan/wizard/action_plan_some.py
index 78726c4d..1145af9f 100644
--- a/sf_plan/wizard/action_plan_some.py
+++ b/sf_plan/wizard/action_plan_some.py
@@ -40,5 +40,5 @@ class Action_Plan_All_Wizard(models.TransientModel):
self.plan_ids.date_planned_start = self.date_planned_start
# 在这里添加您的逻辑来处理这些ID
# 判断能否排成
- self.plan_ids.do_production_schedule()
+ self.plan_ids.do_production_schedule(self.date_planned_start)
_logger.info('处理计划: %s 完成', self.plan_ids.ids)
diff --git a/sf_sale/models/sale_order.py b/sf_sale/models/sale_order.py
index f0f480cf..279ac895 100644
--- a/sf_sale/models/sale_order.py
+++ b/sf_sale/models/sale_order.py
@@ -271,7 +271,7 @@ class ResaleOrderLine(models.Model):
embryo_redundancy_id = fields.Many2one('sf.embryo.redundancy', '坯料冗余')
manual_quotation = fields.Boolean('人工编程', default=False)
model_url = fields.Char('模型文件地址')
- model_id = fields.Char('模型id')
+ model_id = fields.Char('模型ID')
delivery_end_date = fields.Date('交货截止日期')
diff --git a/sf_sale/views/sale_order_view.xml b/sf_sale/views/sale_order_view.xml
index 1d047649..0574f5d5 100644
--- a/sf_sale/views/sale_order_view.xml
+++ b/sf_sale/views/sale_order_view.xml
@@ -107,6 +107,7 @@
+