Create ECO form code action = records.action_create_eco() mrp.plm.production.form mrp.production not is_outdated_bom and not latest_bom_id or state not in ['draft', 'confirmed']