diff --git a/sf_manufacturing/models/mrp_workorder.py b/sf_manufacturing/models/mrp_workorder.py
index 1edf529d..dfae3d16 100644
--- a/sf_manufacturing/models/mrp_workorder.py
+++ b/sf_manufacturing/models/mrp_workorder.py
@@ -178,9 +178,9 @@ class ResMrpWorkOrder(models.Model):
[('workorder_id', '=', self.id)])
for check_order in quality_check:
if check_order.point_id.is_inspect:
- check_order.state = 'waiting'
+ check_order.quality_state = 'waiting'
else:
- check_order.state = 'none'
+ check_order.quality_state = 'none'
# move_dest_ids
finished_quants = moves.mapped('move_line_ids.lot_id.quant_ids')
finished_quants.quantity = 0
@@ -204,9 +204,9 @@ class ResMrpWorkOrder(models.Model):
[('workorder_id', '=', self.id)])
for check_order in quality_check:
if check_order.point_id.is_inspect:
- check_order.state = 'waiting'
+ check_order.quality_state = 'waiting'
else:
- check_order.state = 'none'
+ check_order.quality_state = 'none'
def _compute_working_users(self):
super()._compute_working_users()
diff --git a/sf_manufacturing/views/mrp_workorder_view.xml b/sf_manufacturing/views/mrp_workorder_view.xml
index dab95f1b..bd94e9c9 100644
--- a/sf_manufacturing/views/mrp_workorder_view.xml
+++ b/sf_manufacturing/views/mrp_workorder_view.xml
@@ -61,7 +61,8 @@
-
+
{'invisible':
@@ -168,7 +169,8 @@
-
+
+
@@ -183,6 +185,8 @@
+
-
-
-
+
+
+
-
+
@@ -263,8 +268,8 @@
-
+
@@ -321,7 +326,7 @@
-
+
@@ -498,7 +503,8 @@
-
+
@@ -647,7 +653,8 @@
-
+