diff --git a/sf_manufacturing/models/production_line_base.py b/sf_manufacturing/models/production_line_base.py index f9a30d36..a8c41cd3 100644 --- a/sf_manufacturing/models/production_line_base.py +++ b/sf_manufacturing/models/production_line_base.py @@ -21,10 +21,12 @@ class ProductionLine(models.Model): num = "%03d" % m return num - name = fields.Char('生产线') + mrp_workcenter_ids = fields.One2many('mrp.workcenter', 'production_line_id', '工作中心') + name = fields.Char('生产线', size=20, required=True) code = fields.Char('编码', default=_get_code, readonly=True) remark = fields.Char('备注') + diff --git a/sf_manufacturing/views/production_line_view.xml b/sf_manufacturing/views/production_line_view.xml index b9fd459f..f12f6d98 100644 --- a/sf_manufacturing/views/production_line_view.xml +++ b/sf_manufacturing/views/production_line_view.xml @@ -5,8 +5,9 @@ sf.production.line - + + @@ -18,13 +19,16 @@
+
+

+ +

+
- - - - + +
@@ -54,8 +58,8 @@
-
- +

+