diff --git a/sf_plan/models/custom_plan.py b/sf_plan/models/custom_plan.py
index fcfb8020..db8f4bf9 100644
--- a/sf_plan/models/custom_plan.py
+++ b/sf_plan/models/custom_plan.py
@@ -19,7 +19,7 @@ class sf_production_plan(models.Model):
('done', '已排程'),
('processing', '加工中'),
('finished', '已完成')
- ], string='工单状态', tracking=True)
+ ], string='状态', tracking=True)
state_order = fields.Integer(compute='_compute_state_order', store=True)
@@ -36,7 +36,7 @@ class sf_production_plan(models.Model):
_order = 'state_order asc, write_date desc'
- name = fields.Char(string='工单编号')
+ name = fields.Char(string='制造订单')
active = fields.Boolean(string='已归档', default=True)
# selected = fields.Boolean(default=False)
# order_number = fields.Char(string='订单号')
@@ -52,7 +52,7 @@ class sf_production_plan(models.Model):
schedule_setting = fields.Selection([
('reverse', '倒排'), ('positive', '顺排')], string='排程设置', default='reverse')
product_id = fields.Many2one('product.product', '关联产品')
- origin = fields.Char(string='订单号')
+ origin = fields.Char(string='销售订单')
# # 加工时长
# process_time = fields.Float(string='加工时长', digits=(16, 2))
# 实际加工时长、实际开始时间、实际结束时间
diff --git a/sf_plan/views/view.xml b/sf_plan/views/view.xml
index 3b53efc2..02e595f7 100644
--- a/sf_plan/views/view.xml
+++ b/sf_plan/views/view.xml
@@ -17,18 +17,18 @@
decoration-danger="state == 'finished'"/>
-
+
-
-
-
-
-
+
+
+
+
+
+
+
@@ -68,7 +68,7 @@
-
+
@@ -152,16 +152,27 @@
sf.production.plan
+
-
-
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -188,30 +199,41 @@
+
+
+
-
- 开始时间:
-
+ 销售订单号:
+
-
- 结束时间:
-
-
- -
- 名称:
+ 制造订单号:
+ -
+ 订单交期:
+
+
+ -
+ 产品名称:
+
+
-
数量:
-
- 状态:
-
+ 计划开始时间:
+
+
+ -
+ 计划结束时间:
+
@@ -246,6 +268,7 @@
ir.actions.act_window
sf.production.plan
tree,gantt,form
+
{'search_default_group_by_state': 1, 'search_default_draft': 1, 'display_complete': True}