diff --git a/addons/mrp/models/mrp_production.py b/addons/mrp/models/mrp_production.py
index eed00193df3..64859aae120 100644
--- a/addons/mrp/models/mrp_production.py
+++ b/addons/mrp/models/mrp_production.py
@@ -691,8 +691,8 @@ class MrpProduction(models.Model):
if 'date_planned_start' in vals and not self.env.context.get('force_date', False):
if production.state in ['done', 'cancel']:
raise UserError(_('You cannot move a manufacturing order once it is cancelled or done.'))
- if any(wo.date_planned_start and wo.date_planned_finished for wo in production.workorder_ids):
- raise UserError(_('You cannot move a manufacturing order once it has a planned workorder, move related workorder(s) instead.'))
+ if production.is_planned:
+ production.button_unplan()
if vals.get('date_planned_start'):
production.move_raw_ids.write({'date': production.date_planned_start, 'date_deadline': production.date_planned_start})
if vals.get('date_planned_finished'):
diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml
index 6a6588542f3..0db33089bb7 100644
--- a/addons/mrp/views/mrp_production_views.xml
+++ b/addons/mrp/views/mrp_production_views.xml
@@ -87,9 +87,9 @@
('state', '!=', 'to_close')]}" string="Mark as Done" type="object" class="oe_highlight"
confirm="There are no components to consume. Are you still sure you want to continue?"/>
-
-
+
+